G
Guest
Hi,
In a .NET 2.0 winforms application, I've got a textbox that, when updated,
uses the validated event to cascade the change to another textbox (along with
another value). This works well if the user does indeed move the cursor to
another textbox, but if the user clicks my "done" toolstripbutton after
making a change in the textbox but without moving the cursor out, the
validated event never fires. I have a pretty bad workaround where in the
"done" event handler, I check to see if the original textbox has the focus,
and if it does, I move the focus to another textbox and put it back. Is there
a better way to handle this situation?
Thanks...
-Ben
In a .NET 2.0 winforms application, I've got a textbox that, when updated,
uses the validated event to cascade the change to another textbox (along with
another value). This works well if the user does indeed move the cursor to
another textbox, but if the user clicks my "done" toolstripbutton after
making a change in the textbox but without moving the cursor out, the
validated event never fires. I have a pretty bad workaround where in the
"done" event handler, I check to see if the original textbox has the focus,
and if it does, I move the focus to another textbox and put it back. Is there
a better way to handle this situation?
Thanks...
-Ben