Pane on MDI Form question |
Post Reply |
Author | |
Zarch
Newbie Joined: 15 June 2005 Status: Offline Points: 3 |
Post Options
Thanks(0)
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |