PDA

Click to See Complete Forum and Search --> : inactivating the mouse cursor


FrozenFear
Dec 26th, 2001, 05:42 AM
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.....:D

jim mcnamara
Dec 26th, 2001, 09:43 AM
You could disable the button so it cannot be pressed while the process is going on.

Sub Command1_Click()

Command1.Enabled=False
' do your processing here....
Command1.Enabled=True
End Sub

FrozenFear
Dec 28th, 2001, 01:29 AM
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....:D