13 Replies - 912 Views - Last Post: 28 September 2009 - 09:17 AM Rate Topic: -----

#1 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Final Product- compiling without images :S [urgent]

Posted 26 September 2009 - 03:51 PM

Hello peeps!

I have got to the stage where I would like to build my project and I have done so, however none of the images have compiled..

My images are all located in recourses.resx

how can I get my resources to compile with my project so my buttons and other images work like they did when previewing in debug?


Thanks for your help!

This post has been edited by mangoman: 27 September 2009 - 07:25 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Final Product- compiling without images :S [urgent]

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 26 September 2009 - 07:14 PM

View Postmangoman, on 26 Sep, 2009 - 02:51 PM, said:

Hello peeps!

I have got to the stage where I would like to build my project and I have done so, however none of the images have compiled..

My images are all located in recourses.resx

how can I get my resources to compile with my project so my buttons and other images work like they did when previewing in debug?


Thanks for your help!



This is just a thought, are you indeed pulling the images from your resource files to display in your toolbars?
Was This Post Helpful? 1
  • +
  • -

#3 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 27 September 2009 - 01:12 AM

Yes I am
Was This Post Helpful? 0
  • +
  • -

#4 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 27 September 2009 - 04:59 AM

Am I doing it wrong?
Was This Post Helpful? 0
  • +
  • -

#5 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 27 September 2009 - 09:34 AM

Am I not meant to pull the images from your resource files to display in your toolbars??

If not how am I supposed to do it?

Thanks:)
Was This Post Helpful? 0
  • +
  • -

#6 Ändrew  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 25
  • View blog
  • Posts: 312
  • Joined: 21-April 08

Re: Final Product- compiling without images :S [urgent]

Posted 27 September 2009 - 05:12 PM

Well when you have the Image option is the dialog that pops up going to your resource or your system.
Was This Post Helpful? 0
  • +
  • -

#7 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 01:00 AM

The image properties go: ProjectName.My.Resources.WhateverTheImageNameIs
Was This Post Helpful? 0
  • +
  • -

#8 motcom  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 290
  • View blog
  • Posts: 1,371
  • Joined: 16-June 08

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 01:42 AM

Hi,

How did you compile it/Deployed it? Are you using Click Once or not?
Was This Post Helpful? 0
  • +
  • -

#9 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 01:47 AM

I build (using the build... button) the project and it comes without the images, what do you mean by Click Once?

Thanks

This post has been edited by mangoman: 28 September 2009 - 01:48 AM

Was This Post Helpful? 0
  • +
  • -

#10 motcom  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 290
  • View blog
  • Posts: 1,371
  • Joined: 16-June 08

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 02:19 AM

Hi,

You might want to consider using Click Once as your project will most pobalby need DotnetFramework and windows Installer (and any other custom controls you had been using or things like SQL Report Viewer etc.)

There are 2 options in making a setup program, "Click Once" and "Setup and Deployment"

Click Once is availbe in Express Editions but the Setup and Deployment not.

Click Once

(VB.Net 2008 or VB.Net 2005)

Click Once makes as setup project for you its very limited but has given us the easiest method of deploying our application and giving access to updates.

Click Once can be accessed on the "MyProject" folder in the Solution Explorer. And Selecting "Publish"

On the "application files" button you can choose if you can change the Publish Status of "Prerequisite (Auto)" to "Include". (if there are any that you can change).

On the "Prerequisites" button you can incude the Dotnet Framework and Windows Installer.

If you click "Publish Wizare" it will create a wholes setup program for you to the publish location.

I am sure it should then include the resources.

Setup and Deployment

Alteratively (if you do not have any express verion of Visual Studio/VB.Net)
you can have a look at my tutorial in the VB.Net Tutorials Section about "Setup and Deployment with Prerequisites Included in VB.Net 2008". There i added some more info about how to include those files as well.

Hope this gives you some insight.
Was This Post Helpful? 0
  • +
  • -

#11 Goethals  Icon User is offline

  • D.I.C Head

Reputation: 25
  • View blog
  • Posts: 145
  • Joined: 14-April 09

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 02:20 AM

Have you opened your application files with reflector to see if the
resources are present?
Was This Post Helpful? 0
  • +
  • -

#12 motcom  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 290
  • View blog
  • Posts: 1,371
  • Joined: 16-June 08

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 04:00 AM

Hey MangoMan,

In your solutions explorer, under the folder Resources, should be your images.

Click on the first image and set the property for "build action" to "compile" or "content".

And set the "Copy to output Directory" to "Copy Always"...

and try again.

This post has been edited by motcom: 28 September 2009 - 04:03 AM

Was This Post Helpful? 1
  • +
  • -

#13 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 06:50 AM

Ok thanks guys, I am currently away from my home computer so when I get home I will try these surgestions :)
Was This Post Helpful? 0
  • +
  • -

#14 mangoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 23-September 09

Re: Final Product- compiling without images :S [urgent]

Posted 28 September 2009 - 09:17 AM

Thanks my problem is solved now =]

Thanks to CharlieMay for this help via PMing and MotCom for this on thread input :)

This post has been edited by mangoman: 28 September 2009 - 09:33 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1