Problem with ConfirmMessage.Focus

Discussion in 'Questions (Windows Mobile)' started by Max Tillberg, Mar 22, 2009.

  1. Max Tillberg

    Max Tillberg Member Licensed User

    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
     
    Last edited: Mar 22, 2009
  2. Erel

    Erel Administrator Staff Member Licensed User

    How do you prevent the user from activating any other controls while the message is visible?
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice