Print Page | Close Window

MDI tabs activation

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=1051
Printed Date: 11 May 2024 at 7:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MDI tabs activation
Posted By: Woody
Subject: MDI tabs activation
Date Posted: 11 August 2004 at 10:07am
I'm using ShowTabWorkspace(True). How do I select an MDI Child Form tab to make that Form visible/active from code? Form.Show doesn't do it.

And is there any way to temporarily disable a Tab so a Form can't be selected/shown?

Thanks in advance



Replies:
Posted By: SuperMario
Date Posted: 11 August 2004 at 10:31am
             If Not CommandBars.TabWorkspace.Item(2) Is Nothing Then
                 CommandBars.TabWorkspace.Ite m(2).Selected = True
                'CommandBars.TabWorkspace.Item(2).Enabled = False
                'CommandBars.TabWorkspace.Item(2).Visible = False
             End If

Then something like:
             ActiveForm.Text1.Text = "Test"


Posted By: Woody
Date Posted: 12 August 2004 at 3:04pm
I'm having problems accessing a MDI Child Form through it's Tab once it has been created.

I add for example three forms - Company, Contacts, Quotations.
These may be opened and closed in any order. How can I reference a particular form to enable/select it in code when I only have indexes?

ie. CommandBars.TabWorkspace.Item(2).Selected = True

thanks for any help.


Posted By: Woody
Date Posted: 17 August 2004 at 7:49am
Does anyone have a solution for this?
Thanks



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