This article shows you how to create MDI Form with Menu Bar in Microsoft Visual Basic 2008. From this article, you will know:
- How to create MDI Form?
- How to create Menu Bar?
- How to click on each menu item to open child form in MDI form?
- Create MDI Form
Create New Form (Project Menu -> Add New Item -> Windows Form)
Change Properties of Form as below
- WindowState: Maximized
- isMdiContainer: True
- Create Menu Bar
Drag MenuStrip Control to MDI Form
Add Menu Item and Sub Menu Item (See in Video Below)
- Write Code
Click on Menu Item to show Form in MDI Form (see example below)
frmStudent.MdiParent = Me frmStudent.Show()
See video below
|< Prev||Next >|