causesvalidation sticky field
-
i have a textbox control that displays a date field. In the validating event of the control, I am checking that the user has entered a valid date (in the format I specify and check), and if the date is not valid calling e.cancel = true to force valid date entry. My problem is that if the user trys to close the form using the X button, the validating event is still firing. I read somewhere you could check the mouse click to determine where the user clicked (title bar or client area). How would you determine where the user clicked? jmiddleton
-
i have a textbox control that displays a date field. In the validating event of the control, I am checking that the user has entered a valid date (in the format I specify and check), and if the date is not valid calling e.cancel = true to force valid date entry. My problem is that if the user trys to close the form using the X button, the validating event is still firing. I read somewhere you could check the mouse click to determine where the user clicked (title bar or client area). How would you determine where the user clicked? jmiddleton
vb6 or vb.net ? in vb6 i don't face this problem
-
vb6 or vb.net ? in vb6 i don't face this problem
Sorry. I am using vb.net