Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - (SOLVED) MDI Tab -- select in code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

(SOLVED) MDI Tab -- select in code

 Post Reply Post Reply
Author
Message
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: (SOLVED) MDI Tab -- select in code
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2009 at 3:50am
Hi,
activate Child Form. Corresponded Tab will be activated automatically.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.594 seconds.