Print Page | Close Window

(SOLVED) MDI Tab -- select in code

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13161
Printed Date: 06 May 2024 at 12:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: (SOLVED) MDI Tab -- select in code
Posted By: chrisABC
Subject: (SOLVED) MDI Tab -- select in code
Date 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



Replies:
Posted By: Oleg
Date Posted: 15 January 2009 at 3:50am
Hi,
activate Child Form. Corresponded Tab will be activated automatically.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: chrisABC
Date Posted: 15 January 2009 at 4:54am
Originally posted by oleg oleg wrote:

Hi,
activate Child Form. Corresponded Tab will be activated automatically.


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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net