Rajesh Karunakaran
Programmer
Hi Team,
I have a textbox and a command button in a form. The command button is to exit from the form. Textbox has some code in its Valid method. It invokes a help list (another form) if the textbox value is empty. Now, when the focus is in the textbox and when I click the command button, the Textbox Valid fires and the help list is shown. I have to then exit from the help list and once again click on the command button.
Is there anyway to avoid this second click?
I mean, something like to identify if I click on the command button when the focus is on the textbox and then to bypass the Valid event firing and directly run the command button code.
Thanks
Rajesh
I have a textbox and a command button in a form. The command button is to exit from the form. Textbox has some code in its Valid method. It invokes a help list (another form) if the textbox value is empty. Now, when the focus is in the textbox and when I click the command button, the Textbox Valid fires and the help list is shown. I have to then exit from the help list and once again click on the command button.
Is there anyway to avoid this second click?
I mean, something like to identify if I click on the command button when the focus is on the textbox and then to bypass the Valid event firing and directly run the command button code.
Thanks
Rajesh