Solved

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

Posted on 2004-09-10
8
210 Views
Last Modified: 2013-12-25
HI...

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

Thanks
0
Comment
Question by:neonlights
  • 5
  • 3
8 Comments
 
LVL 3

Accepted Solution

by:
redfordb earned 500 total points
Comment Utility
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.
0
 

Author Comment

by:neonlights
Comment Utility
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
0
 

Author Comment

by:neonlights
Comment Utility
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.
0
 
LVL 3

Expert Comment

by:redfordb
Comment Utility
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.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:neonlights
Comment Utility
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...
0
 
LVL 3

Expert Comment

by:redfordb
Comment Utility
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 ?
0
 

Author Comment

by:neonlights
Comment Utility
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?

Thanks.

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

this what I have:

mnutest   form1  form2


Not under it.

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10092527.html?query=mnuwindow&clearTAFilter=true

Thanks
0
 

Author Comment

by:neonlights
Comment Utility
Hi, I am sorry did not get back to you sooner. Thank for your help, really appreciated.

Bye!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 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

17 Experts available now in Live!

Get 1:1 Help Now