Problem with DoEvents and imagebutton
Hi,
I am writing a game that sometimes pauses and waits for a confirmation. I have solved this by using DoEvents and an imagebutton. The strange thing is that I have to press the imagebutton twice to get this to work but then it works fine for a while. Other buttons in the game works just fine. I have tried to set focus but still no luck. Any ideas?
...
ConfirmMessage.Visible = True
Do While ConfirmMessage.Visible = True
DoEvents
Loop
...
Sub ConfirmMessage_Click
ConfirmMessage.Visible = False
End Sub
/Max Tillberg
Hi,
I am writing a game that sometimes pauses and waits for a confirmation. I have solved this by using DoEvents and an imagebutton. The strange thing is that I have to press the imagebutton twice to get this to work but then it works fine for a while. Other buttons in the game works just fine. I have tried to set focus but still no luck. Any ideas?
...
ConfirmMessage.Visible = True
Do While ConfirmMessage.Visible = True
DoEvents
Loop
...
Sub ConfirmMessage_Click
ConfirmMessage.Visible = False
End Sub
/Max Tillberg
Last edited: