HOW DO ADD Menu Item to the MDI Form in RUN TIME

Posted on 2004-09-10
Medium Priority
Last Modified: 2013-12-25

I have a Mdiform, and one of the Menu called Windows.

So, when I ever I open a open a form, I would like to add that form to the Windows menu - submenu...so, user can change window...just like in ms products

Question by:neonlights
  • 5
  • 3

Accepted Solution

redfordb earned 2000 total points
ID: 12026331
You dont have to add it to the menu with an MDI menu.
In the Menu Editor, Create a menu item as such ...
Caption = Window
Name   = mnuWindow

Then tick the WindowList checkbox (its the checkbox on the right under the NegotiatePosition combobox. Now when ever a child form in visible in the mdi form, it will be added to this menu item.

Author Comment

ID: 12026453
Okay....Cool, Very cool,

I have a question for you..... one tiny bit of problem. on my mdiform load, I am loading a form with a clock. But, I do not want that item to be on the window...Is there any way to do it?

Thank you very much

Author Comment

ID: 12026499
What I am wondering do I have a option in not showing certain forms in that window?

Thank you .. and how that name work?

is it the form name? or the form caption?

and also when I loaded my mdiform, under window, I have check mark and "1"... what is that? is it one of my form loaded? I do not recall any of my form name with "1"

Thank you again.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 12026845
The check mark shows the form that currently has focus.
The "1" shows that that is the topmost form ie, form 1 will show above form 2 if they overlap.

Author Comment

ID: 12027271
Hi, thanks for your response, but, I still like to know if you know...do I have the control of not showing forms on on that window menu.... PLEASE.... Beause, I do not want to show the forms that I am running on the back ground.,...if you know what I mean?

Thanks very much...

Expert Comment

ID: 12027329
No, all the child forms that are currenlty visible will be there. Why would you want only the active form to be in the list ?

Author Comment

ID: 12027602
ok, someone asked the same question and you really can not do it, but, someone gave his coding solution...it is working...but, it is keep putting them on the same line....on under mnutest....Would you like to check it out?


this is the question and I tried...but....

this what I have:

mnutest   form1  form2

Not under it.



Author Comment

ID: 12037237
Hi, I am sorry did not get back to you sooner. Thank for your help, really appreciated.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

840 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