O
ORC
Hi,
I've used a tabcontrol containing several different kind of Usercontrols.
When the user has finished entering data in a control (that still has focus)
a usual thing to do is to select another tab. However - if the selected
control validates to false (e.g. if the user has entered non valid data like
a letter in a number field) the tabcontrol should stay on the current tab
with the Usercontrol still focused so that the user can change it. How to do
that???????
I have tried to use the 'SelectedIndexChanged' event, but it is useless
because the event fires AFTER the tab has been drawn but BEfORE the controls
on the new page has been drawn - strange behaviour! I can't find a way
through this so any help or inspiration is highly appreciated.
Thanks,
Ole
I've used a tabcontrol containing several different kind of Usercontrols.
When the user has finished entering data in a control (that still has focus)
a usual thing to do is to select another tab. However - if the selected
control validates to false (e.g. if the user has entered non valid data like
a letter in a number field) the tabcontrol should stay on the current tab
with the Usercontrol still focused so that the user can change it. How to do
that???????
I have tried to use the 'SelectedIndexChanged' event, but it is useless
because the event fires AFTER the tab has been drawn but BEfORE the controls
on the new page has been drawn - strange behaviour! I can't find a way
through this so any help or inspiration is highly appreciated.
Thanks,
Ole