batutabunsing
Member
- Joined
- Mar 3, 2008
- Messages
- 19
- Programming Experience
- Beginner
Windows Forms Newbie
Hi everyone. Am pretty new in Windows programming. I have VS 2005 and VB.Net as my choice for programming.
Anyway, I want to ask some simple question regarding Windows Forms development.
1. I want to create an MDI form. Let us assume the following:
MDIParent
ChildForm1
ChildForm2
ChildForm3
MDIParent has the following menus:
Transactions
- Booking (Opens Child1 window)
- Enquiry (Opens Child2 window)
- Tickets
- Schedules
Queries
- Facility
- Activity
Reports
- Booking by Month
- Booking by Quarter
- Tickets By Month
- Tickets by Quarter
Child1 and Child3 has the following menus:
File
- Insert Record
- Close Window
Edit
- Undelete
- Refresh
View
- Sort
- Filter
Window
- Cascade
- Tile Horizontal
- Tile Vertical
- Layer
Help
- About
My question now is this:
How can I make that when I open the Child1 or Child3 windows, the menus that I have provided for the said child windows will become the menu of the MDIparent, and such that when I close it, the Menu of the MDIParent returns back to its original menu?
Another thing I noticed, since Child1 and Child3 has the same set of menus, could it be possible to simply create a common menu control which can be placed in CHild1 and Child3 so as not to repeat the same menus for the windows?
Would appreciate greatly your assistance and advise. Thanks.
Hi everyone. Am pretty new in Windows programming. I have VS 2005 and VB.Net as my choice for programming.
Anyway, I want to ask some simple question regarding Windows Forms development.
1. I want to create an MDI form. Let us assume the following:
MDIParent
ChildForm1
ChildForm2
ChildForm3
MDIParent has the following menus:
Transactions
- Booking (Opens Child1 window)
- Enquiry (Opens Child2 window)
- Tickets
- Schedules
Queries
- Facility
- Activity
Reports
- Booking by Month
- Booking by Quarter
- Tickets By Month
- Tickets by Quarter
Child1 and Child3 has the following menus:
File
- Insert Record
- Close Window
Edit
- Undelete
- Refresh
View
- Sort
- Filter
Window
- Cascade
- Tile Horizontal
- Tile Vertical
- Layer
Help
- About
My question now is this:
How can I make that when I open the Child1 or Child3 windows, the menus that I have provided for the said child windows will become the menu of the MDIparent, and such that when I close it, the Menu of the MDIParent returns back to its original menu?
Another thing I noticed, since Child1 and Child3 has the same set of menus, could it be possible to simply create a common menu control which can be placed in CHild1 and Child3 so as not to repeat the same menus for the windows?
Would appreciate greatly your assistance and advise. Thanks.