-
September 8th, 2011, 02:21 AM
#1
Help me with this code...I have just started Learning VB6!
This is my 4th code and it's a mixture of Image Box,Label Box and 4 option buttons. I have written the code but i'm getting a error as "Object Required". My code is as Follows:
The Question is choose a Option of your pet and with that the required image will also be displayed!
Private Sub OptDog_Click()
Image1.Picture = LoadPicture("C:\Users\PC\Desktop\germanshepherd.jpg")
End Sub
Private Sub OptCat_Click()
Image2.Picture = LoadPicture("C:\Users\PC\Desktop\lacykittens.jpg")
End Sub
Private Sub OptParrot_Click()
Image3.Picture = LoadPicture("C:\Users\PC\Desktop\parrotcracker.jpg")
End Sub
Private Sub OptGuinneaPig_Click()
Image4.Picture = LoadPicture("C:\Users\PC\Desktop\guineapig.jpg")
End Sub
Tags for this Thread
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
|