Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Only one MDI from allowed

Posted on 1998-12-01
5
Medium Priority
?
190 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 80 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

916 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