(SOLVED) MDI Tab -- select in code |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
Posted: 13 January 2009 at 2:25pm |
Using the MDI Tabs, I can select a different Tab by clicking with mouse on either the Form or the Tab, or slecting from VIEW Menu.
But how can I select a different Tab in code? (I have tried setting Focus to the Form in a Tab, but although this works for a second, CommandBars then insists on switching back to the original Tab). SOLUTION: childForm.ZOrder 0 will select the childForm in code. |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
activate Child Form. Corresponded Tab will be activated automatically.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
Thank you. I had already tried childForm.Activate, childForm.Show, childForm.Visible = True, childForm.SetFocus but none of these work. Now I try childForm.ZOrder 0 and this does work. |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |