Results 1 to 3 of 3

Thread: inactivating the mouse cursor

  1. #1
    FrozenFear
    Guest

    inactivating the mouse cursor

    I have a problem with inactivating the mouse cursor.

    In someplace, in my program, when a button is pressed, a process is carried out. It sends a message through a socket and when the result comes, it parses this. To indicate that something is going on, I change the mouse cursor to hourglass but, the button remains available to be pressed again, while the process is still in progress.

    Is there an easy way of inactivating and reactivating the mouse cursor, that is, the mouse should not effect anything when it is inactivated.....

    thanks for helps.....

  2. #2
    jim mcnamara
    Guest
    You could disable the button so it cannot be pressed while the process is going on.
    Code:
    Sub Command1_Click()
    
    Command1.Enabled=False
    ' do your processing here....
    Command1.Enabled=True
    End Sub

  3. #3
    FrozenFear
    Guest
    thanks for your interest jim mcnamara but, the project is a large one. It has more than 250 forms in it and it will be hard to enable and disable the controls with some processes in all of them...

    I am looking for an easier solution...


    Thanks anyway....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width