[Last Call] Learn how to a build a cloud-first strategyRegister Now


VB.Net - Menu process

Posted on 2005-04-29
Medium Priority
Last Modified: 2012-08-13
New to VB.Net but know VB6.

The question is the following.....

I want a MDI Form with menu options on it. When you select a menu option a form will appear e.g. Employer Form.

In VB6 it was just a case of adding >>>>  form.Show in the click event of say the mnuEmployerForm

I must be doing something else but I cannot get this in VB.Net. Any ideas where I am going wrong and could you recommend a good sample code site as I feel I am getting lost and need some examples to get started.

Question by:directred
  • 2

Expert Comment

ID: 13895475
Hi direct,

I know exactly how you feel! I had the same problem about 2 yrs ago when moving from VB6 to .NET

The syntax is a bit different in VB.NET, as you have to declare the form you wish to show as a new form object, and then call the show() method on that object, eg:

Dim frmNewChild as New frmEmplyerForm ' <-- the name of the form object you want to show

Before calling Show() you may need to add the form to the controls collection of your parent form, so that it appears as an MDI child.

Let me know if you need further help.



Accepted Solution

doobdave earned 375 total points
ID: 13895500
A quick search in Google found me this link, which contains all the info you need for creating MDI apps:


Author Comment

ID: 13896585
Just a follow onto this. I am still getting a little bit mixed up with the controls collection of the parent form etc. Where do you also put frmNewChild.Show()?

It is that Friday feeling and trying this all day never helped.

If it is not too much bother, what would the code be like.

Thanks in advance

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Starting up a Project

830 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