how to do multiple pages in VB.NET form -


i've inherited vb.net code think needs restructuring. project has 3 forms, each of own windows form file inherits system.windows.forms.form.

the problem these forms share common navigation menu bar not change user switches between forms, , original programmer has duplicated menu code in each of 3 files generate menu on each one! figure can't right.

to restructure it, thought create base form implemented menu, , let other forms inherit that, ran problem windows forms inherit class mentioned above, , can't inherit class.

i noticed can add item called "inherited form", way go here? problem of creating multiple screens common menu bar has incredibly common. there 1 true way this? should use inherited forms, or should have 1 base form , make other screens plain classes , not forms @ all? or else i'm not thinking of?

depending on specifics; might want consider using mdi forms.

another option i've seen having menu/shared toolbars encapsulated in usercontrol , used desired.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -