Hello Friends..
There are 5 command buttons in a form... Each command button reads dat from serial port...
My problem is...When we press a command button while it is been processing..mean while if the user presses other command button it should not function or activate...But I'm not able to do that...
Please any one help me abt this...
Bye suma

Command Buttons
bertrand23851
You could also try locking or disableing the form
me.enabled = false
Siraj Salim
Before the routine that starts reading data from the the port fires, set the enabled property of these buttons to False. This will disable the buttons.
Once the routine that starts reading data from the the port finishes, reset the enabled property of these buttons to Ture.
Hope this helps
Cheers
Wassim