Text Box focus on a tab page

qex

Regular
Joined
Apr 2, 2003
Messages
78
I'm having a problem where during the tabPage enter event I set a textbox on that tab page to have the focus. This works fine... The problem is that there are buttons on this tab page and when the textbox has focus after the enter event the first click of the button doesn't do anything other than remove the focus from the text box then it seems to work fine from that point on.

The only other thing that is happening is the text box has a validation event that is firing when it loses foucs. I don't do any focusing in the validation event so does anyone have an idea of what is happening here.

Thanks in advance
 
Ok its something about the validation event that is screwing up the button click. The only thing that I can tell is that sometimes I change the text box in the validation routine, but I'm still unsure as to why then the click would not fire the button click event.
 
Back
Top