-
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
-
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"
-
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
-
yah, so when you load the new picture you just put the path in the Tag property............. jeez:rolleyes:
-
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
-
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.