Link to home
Start Free TrialLog in
Avatar of syerston
syerston

asked on

DT Picker validation event causing problems

The date time pickers I have on a SSTab are not behaving the way they should.  If the validation event fires the focus will remain on the control as  long as the user clicks on any control in the tab or anywhere on the form.  However, if the user clicks on another tab or indeed on the label of the current tab the date control will lose the focus and the user can continue.

Is this a problem with the DTPicker or the Causes Validation property of the SSTab?

I already have up to Service Pack 5 installed.

Any advice greatly appreciated.

Avatar of JohnMcCann
JohnMcCann

I think your problem is neither of your suggestions.  During the Validate you are setting Cancel = True which forces the focus to remain on the control.  To prove this comment out the code in the Validate event.  This is not a problem it is what it is there for.


Hope this is of some help


John McCann
ASKER CERTIFIED SOLUTION
Avatar of syerston
syerston

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's ok
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->PAQ - with points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer