I have a MaskEdBox control on a form and am using the Validate Event to make sure invalid charachters are not placed in the MaskEdBox control. I have set the MaskEdBox control up as follows, >AA##-####.
I have set the default display charachter to "#" so I am validating whether or not the "#" exists in the value before passing control to any other object on the form.
Unfortunatley, during this whole process I would like to have a Command button active on the form at all times, an exit button if you will. But the validate event is not letting be access this command button.
Any suggestions on how I can still do the validate but always have the Command button active and nothing else on the form active?
I have set the default display charachter to "#" so I am validating whether or not the "#" exists in the value before passing control to any other object on the form.
Unfortunatley, during this whole process I would like to have a Command button active on the form at all times, an exit button if you will. But the validate event is not letting be access this command button.
Any suggestions on how I can still do the validate but always have the Command button active and nothing else on the form active?