|
-
Sep 11th, 2000, 02:31 PM
#1
Thread Starter
Member
In a program I have an image box (ImgPicture) and a command button (CmdGo). What code would I put in CmdGo if I wanted it to load a file? I know that the file destination has to be in the code somewhere. Please Help
Thanks in advance
-
Sep 11th, 2000, 02:33 PM
#2
Hyperactive Member
[code]
sub cmdgo_click
image1.picture = <imagepath>
end sub
-
Sep 11th, 2000, 02:41 PM
#3
Frenzied Member
Beres
what you really want is:
Code:
Private Sub cmdGo_Click()
Dim filename As String
filename = "c:\msh.gif"' or whatever
Image1.Picture = LoadPicture(filename)
End Sub
CyberSurfer - test your code before posting it next time!
-
Sep 11th, 2000, 02:58 PM
#4
Fanatic Member
Yeah, you're right Mark!
Tip 2:
To delete the picture, use ...= LoadPicture()
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
|