Print Page | Close Window

Pane on MDI Form question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=2380
Printed Date: 14 May 2024 at 10:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane on MDI Form question
Posted By: Zarch
Subject: Pane on MDI Form question
Date Posted: 15 June 2005 at 10:03am
Hi all,
    I'm working off the 'Office 2003 MDI' sample that came with the installation.  I want to set the text in the active MDI client from the Pane so i used the line:

frmMain.ActiveForm.Text1.Text="Test"

    except i get the error "Runtime: Only one MDI for allowed" How do i reference the MDI form from a pane? I also tried:

Dim fMain as frmMain
fMain.ActiveForm.Text1.Text="Test"
    
    and i get "Runtime: With or Object variable not set". What am I overlooking? The worst part is, i'm afraid once I can reference frmMain that the ActiveForm will just be the Pane form that I'm pressing the button in. How can I quickly and easily set the text in the active MDI client from a Pane?

many thanks, Zarch



Replies:
Posted By: SuperMario
Date Posted: 15 June 2005 at 10:11am
There is no Office 2003 MDI sample.  Maybe you mean Outlook 2003?  Or maybe you use VB.NET?  Try to use fMainForm instead of frmMain. 



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