Where are the pictures going?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've a two part question involving picture boxes. Firstly, where is the picture? When I changed the image by using the Properties interface in VS, I browsed my system for a file and selected it. Sure enough, it works just fine in the program. When I move/delete/change the picture, however, the change is not reflected in my program. At the same time, I can't find where it's stored in my project directory. Can anyone shed some insight into this for me?

Also, how would I have it point to a file instead? I find the PictureBox controls very useful but would prefer to point it at a file rather than have the image embedded someplace in the program. Any ideas?

I realize these are newbish questions but I've done my searches and the documentation is a bit over my head just yet. Thanks in advance.
 
Hi,

The picture is stored in the form's .resx file, in the Base64 (or BinHex,
not sure here) encoded form.
If you want to use files, you should create a Bitmap instance from that
file, and then assign the Bitmap to the PictureBox.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

sp000n said:
I've a two part question involving picture boxes. Firstly, where is the
picture? When I changed the image by using the Properties interface in VS,
I browsed my system for a file and selected it. Sure enough, it works just
fine in the program. When I move/delete/change the picture, however, the
change is not reflected in my program. At the same time, I can't find where
it's stored in my project directory. Can anyone shed some insight into this
for me?
Also, how would I have it point to a file instead? I find the PictureBox
controls very useful but would prefer to point it at a file rather than have
the image embedded someplace in the program. Any ideas?
I realize these are newbish questions but I've done my searches and the
documentation is a bit over my head just yet. Thanks in advance.
 
Back
Top