|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
PictureBox ProblemI created a panel. Then I created 4 picturebox's inside that panel. I
added an image to each picturebox and I can see the images in my project. However when I run my project I don't see the images. If I hardcode the image file names then it works fine. However I don't want the files to be local, I want them included in the project. Why can't I set the images at design time? Or, how do I properly load the images into my project? Thanks for any help! Justin,
Try the imagelist that will hold them. http://msdn2.microsoft.com/en-us/library/system.windows.forms.imagelist.aspx I hope this helps, Cor Show quoteHide quote "Justin" <Justin@NoSpam.com> schreef in bericht news:%23Vz172JJHHA.1276@TK2MSFTNGP04.phx.gbl... >I created a panel. Then I created 4 picturebox's inside that panel. I >added an image to each picturebox and I can see the images in my project. >However when I run my project I don't see the images. > > If I hardcode the image file names then it works fine. However I don't > want the files to be local, I want them included in the project. > > Why can't I set the images at design time? Or, how do I properly load the > images into my project? > > Thanks for any help! > Ugh, we still have to use those? Ok, then. I'll use that.
If I may ask, what's the point of using the image property at design time to point to a file when it doesn't seem to actualy do anything? Thanks for the info! Thanks, Justin Emlay System Administrator Maisto International, Inc. 909-357-7988 ext.360 909-357-9958 fax JEm***@Maisto.com www.maisto.com Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:ehuGDdMJHHA.2312@TK2MSFTNGP02.phx.gbl... > Justin, > > Try the imagelist that will hold them. > > http://msdn2.microsoft.com/en-us/library/system.windows.forms.imagelist.aspx > > I hope this helps, > > Cor > > "Justin" <Justin@NoSpam.com> schreef in bericht > news:%23Vz172JJHHA.1276@TK2MSFTNGP04.phx.gbl... >>I created a panel. Then I created 4 picturebox's inside that panel. I >>added an image to each picturebox and I can see the images in my project. >>However when I run my project I don't see the images. >> >> If I hardcode the image file names then it works fine. However I don't >> want the files to be local, I want them included in the project. >> >> Why can't I set the images at design time? Or, how do I properly load >> the images into my project? >> >> Thanks for any help! >> > >
Show quote
Hide quote
On Wed, 20 Dec 2006 23:44:08 -0800, "Justin" <Justin@NoSpam.com> wrote: For picture boxes in a container, here, I have to import the images into the project>Ugh, we still have to use those? Ok, then. I'll use that. > >If I may ask, what's the point of using the image property at design time to >point to a file when it doesn't seem to actualy do anything? > >Thanks for the info! > > > > >Thanks, Justin Emlay System Administrator Maisto International, Inc. >909-357-7988 ext.360 909-357-9958 fax JEm***@Maisto.com www.maisto.com >"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message >news:ehuGDdMJHHA.2312@TK2MSFTNGP02.phx.gbl... >> Justin, >> >> Try the imagelist that will hold them. >> >> http://msdn2.microsoft.com/en-us/library/system.windows.forms.imagelist.aspx >> >> I hope this helps, >> >> Cor >> >> "Justin" <Justin@NoSpam.com> schreef in bericht >> news:%23Vz172JJHHA.1276@TK2MSFTNGP04.phx.gbl... >>>I created a panel. Then I created 4 picturebox's inside that panel. I >>>added an image to each picturebox and I can see the images in my project. >>>However when I run my project I don't see the images. >>> >>> If I hardcode the image file names then it works fine. However I don't >>> want the files to be local, I want them included in the project. >>> >>> Why can't I set the images at design time? Or, how do I properly load >>> the images into my project? >>> >>> Thanks for any help! >>> >> >> > image resources and then at runtime, load the resource file: Me.PictureBox1.Image = My.Resource.SomeResourceName Gene I knew there was a reason I hated the imagelist. Isn't there a size limit
of 256 pixels? I'm far beyond that size. |
|||||||||||||||||||||||