Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Pane on MDI Form question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane on MDI Form question

 Post Reply Post Reply
Author
Message
Zarch View Drop Down
Newbie
Newbie


Joined: 15 June 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zarch Quote  Post ReplyReply Direct Link To This Post Topic: Pane on MDI Form question
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.