[email protected] wrote:
I have one Winform called "Main Form" where in i have created my Menu
bar on the Top.
Now i have 12-15 another sub form which I want to display just below
the Menu bar , User will click in options of menu bar and
corresponding win form should appear on the same "Main Form" and
Existing sub form Should get closed.
In order to do the same , I thought of making Panel on " Main Form "
just below the Menu bar and want to replace the panel design value
with other win form on user click event.
Now Question 1. - Is it Possible to do so ..... ??
2. If Yes then what code i need to write on
click event so that it can replace panel value with corresponding win
form.
3. If no than what is the another way to get
this done.
Simplest(?) solution.
Have all your sub-panels occupy the same place within the main form.
When designing them, set the Enable and Visible properties of the panels
to False. Now, when the user selects a panel, set the Enable and Visible
properties of the current panel to False and the properties of the
selected panel to True.
--
Regards,
Mike Fry
Johannesburg.