Solved

Only one MDI from allowed

Posted on 1998-12-01
5
170 Views
Last Modified: 2010-05-03
I have an MDI application, and when I try to reference objects through the MDI Parent (i.e. frmMain.ActiveForm.Caption = "Test"), or try to call public functions declared in the MDI from (i.e. Call frmMDI.Test_Func), I get the error message "Only one MDI from allowed".  Where am I going wrong?
0
Comment
Question by:jjmartin
  • 3
5 Comments
 
LVL 1

Accepted Solution

by:
MAVERICK earned 20 total points
Comment Utility
try Screen.activeForm.caption = "test"

As for the other problem with the declared functions... put them in a module and call them from there... simpler


0
 
LVL 3

Author Comment

by:jjmartin
Comment Utility
Thanks for the help.  I didn't know about the Screen object.  I orignally had all the functions in a module, but then they weren't operating on the dynamic MDI Child forms, so I moved them to the form, and I couldn't call a function.  Anyway, thanks for the help. I got everything straightened out.
0
 
LVL 1

Expert Comment

by:MAVERICK
Comment Utility
No problem

0
 

Expert Comment

by:kraphics
Comment Utility
I get the same error, but it is when I attempt to call the MDI's sub mnuWindowTileHorizontal_Click

is there any help ?
0
 
LVL 1

Expert Comment

by:MAVERICK
Comment Utility
I have been designing web pages for the last 2 years .. might be better to ask as a new question...

sorry i can't be more helpful

Maverick
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now