-
Jun 12th, 2006, 10:43 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Change Picturebox picture
Hi all,
I'm writing a program that has a picturebox in it. The picture is one thing by default, and I don't have to link to the image because it is in the box's properties. I want the image to change when a certain button is pressed, However, I don't want to have to include the image with the exe file.
Is there any way I can compile the image file with the exe, in the same way the default picture is, so that the image can be loaded with a command within the program, without having to do:
Picture1.Picture = LoadPicture("C:\1.bmp")
Or some such thing?
Thanks ^_^
-
Jun 12th, 2006, 10:54 AM
#2
Hyperactive Member
Re: Change Picturebox picture
simply insert another picturebox with visible=false and insert into that picturebox the other picture...
when you press the button do
Picturebox1.picture = Picturebox2.picture
-
Jun 12th, 2006, 11:04 AM
#3
Thread Starter
Addicted Member
Re: Change Picturebox picture
Ahh yeah.. I know that much but I was trying to avoid doing that, that's all. Thanks anyway ^_^.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|