Solved

Only one MDI from allowed

Posted on 1998-12-01
5
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 1

Accepted Solution

by:
MAVERICK earned 20 total points
ID: 1447681
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
ID: 1447682
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
ID: 1447683
No problem

0
 

Expert Comment

by:kraphics
ID: 5013130
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
ID: 5050150
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

759 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