Command Buttons

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



Answer this question

Command Buttons

  • bertrand23851

    You could also try locking or disableing the form

    me.enabled = false



  • Siraj Salim

    Hello Suma

    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

  • Command Buttons