|
-
Jun 14th, 2002, 11:10 PM
#1
Thread Starter
Addicted Member
Image Boxes
to load an image to an image box u use
PHP Code:
imgnextquestion.Picture = LoadPicture("C:\Windows\Button - Next Question.gif"
but i need to identify the image in the box so
if i use
Code:
If imgnextquestion.Picture = LoadPicture("C:\Windows\Button - Next Question.gif" then
msgbox "hello"
end if
it doesnt work
can u use like
imgnextquestion.pciture = button - next question
or sumthing
pls help
this is what i have and it doest work
Code:
If (imgcheck.Visible = True) And (imgnextquestion.Picture = LoadPicture("C:\Windows\Button - Next Question.gif")) Then
MsgBox "Please Click Next Question!", vbInformation, "Info Message"
ElseIf imgnextquestion.Picture = LoadPicture("C:\Windows\Button - Next Question.gif") Then
lbldisplay.Caption = "You have Selected Option B, Click 'Check Answer'"
ElseIf imgnextquestion.Picture = LoadPicture("C:\Windows\button - begin.gif") Then
MsgBox "Please click Begin"
End If
thanks Trav
-
Jun 14th, 2002, 11:13 PM
#2
The picture isn't missing
i would suggest placing the path in the Tag property (image2.Tag=Path) and then see if the TAG of the IMAGE CONTROL is the picture you want. you dont even need to have the path in there, it could be like "greendot" or "yellow snow"
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Jun 14th, 2002, 11:16 PM
#3
Thread Starter
Addicted Member
yeaa i know
i do have it in the properties
but the image has to change during the game
so thats y i ahve made it load from HD
-
Jun 14th, 2002, 11:19 PM
#4
The picture isn't missing
yah, so when you load the new picture you just put the path in the Tag property............. jeez
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Jun 15th, 2002, 12:10 AM
#5
Thread Starter
Addicted Member
nahh thats not what i mean
how can i get thsi code to work
Code:
If (imgcheck.Visible = True) And (imgnextquestion.Picture = LoadPicture("C:\Windows\Button - Next Question.gif")) Then
MsgBox "Please Click Next Question!", vbInformation, "Info Message"
ElseIf imgnextquestion.Picture = LoadPicture("C:\Windows\Button - Next Question.gif") Then
lbldisplay.Caption = "You have Selected Option A, Click 'Check Answer'"
ElseIf imgnextquestion.Picture = LoadPicture("C:\Windows\Button - Begin.gif") Then
MsgBox "Please click Begin"
End If
-
Jun 15th, 2002, 12:13 AM
#6
The picture isn't missing
you wont be able to. loadpicture returns the position of the picture in the ram. it really is impossible.
you will need to either use my idea, or something else.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
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
|