AndrewMozley
Programmer
The value of a textbox is to be checked. Its Validate() method determines whether control can pass to the next field. There are however buttons for ‘Close’ and ‘Cancel’ on the form; If one of these is clicked the validation is bypassed; instead the user is asked whether he does indeed want to abandon what he was doing; he may also have clicked on the Top RH ‘X’ icon to close the form.
What is the best way of handling this in the Validate() method of the textbox?
At present the MouseEnter() and MouseLeave() methods of the ‘Close’ and ‘Cancel’ buttons can set a flag to say that the user has probably clicked on these buttons, but can one detect that the ‘Form Close’ button has been pressed?
Thanks
What is the best way of handling this in the Validate() method of the textbox?
At present the MouseEnter() and MouseLeave() methods of the ‘Close’ and ‘Cancel’ buttons can set a flag to say that the user has probably clicked on these buttons, but can one detect that the ‘Form Close’ button has been pressed?
Thanks