Message 1 of 5
Controlling Which Tab has Focus in Tabbed Dialog Control
Not applicable
07-05-2005
10:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Does anybody know how I can control which tab gets the focus for a Tabbed Dialog control -- I have been looking at the help system and I seem to be not finding the information I need.
Currently I have this huge GUI with many controls in it -- I tried to put everything into one form so that there will be only one tabbed dialog control -- somewhere along the middle of the way however while trying to add the controls -- the form at design time started to complain saying that it reached its limit and no more control can be added.
Because of that I had to create two identical Tabbed Dialog Control in two separate forms and making the two forms looks as identical as possible to give the user the illusion that there is only one form.
I notice right now that there seems to be no way to programmatically set the focus of the tabs so that I can switch back and forth between the two forms and set focus to tabs that have controls on them for each of the corresponding form that in triggered.
Without the capabililty of programmatically controlling the focus as I am describing I end up with the user seing empty
tabs when my code flips him from one form to another.
At design time the tab that has the control becomes the default tab that has the focus on form load -- but I am right now in need of more control to the tab that receives that focus
because of the two forms I have.
Please help me. All suggestions welcome.
Matt
Currently I have this huge GUI with many controls in it -- I tried to put everything into one form so that there will be only one tabbed dialog control -- somewhere along the middle of the way however while trying to add the controls -- the form at design time started to complain saying that it reached its limit and no more control can be added.
Because of that I had to create two identical Tabbed Dialog Control in two separate forms and making the two forms looks as identical as possible to give the user the illusion that there is only one form.
I notice right now that there seems to be no way to programmatically set the focus of the tabs so that I can switch back and forth between the two forms and set focus to tabs that have controls on them for each of the corresponding form that in triggered.
Without the capabililty of programmatically controlling the focus as I am describing I end up with the user seing empty
tabs when my code flips him from one form to another.
At design time the tab that has the control becomes the default tab that has the focus on form load -- but I am right now in need of more control to the tab that receives that focus
because of the two forms I have.
Please help me. All suggestions welcome.
Matt