How to Split Windows Forms like HTML Frame ?? URGENT

S

sqlak sqlak

Hi All,


Could you please give me an idea or sample on how to split a Windows
form into 2 partition similar to HTML Frames.

My objective is that I have Windows Form called "Main". In the fom
"Main", I need 2 section in vertically.

One section called "section1" to keep "Menu Options" and other section
called "section2".

"section1" will be used to place "menu options". "section2" content
would be dynamic where I need to load "forms" based "menu option" user
click from "section1".

Kindly advise... Many thanks in advance..



to display or load a form based on user selction from "section1".
 
T

Tarakeshwar L

Create a main form. Have a panel in the left which will contain the menu
options. Make ur main form as mdiparent. and call ur forms as child forms to
the main form.
 
S

sqlak sqlak

Hi Tarkeshwar

Thanks for reply.

if I create all forms as child of "main", shall I create the panel in
all "child forms". I need the menu option to be available in child forms
which loaded on selection of menu option from "main" form as well as
"child".

Kindly help... many thanks in advance..

REgards
 
J

Jon Skeet [C# MVP]

sqlak sqlak said:
Could you please give me an idea or sample on how to split a Windows
form into 2 partition similar to HTML Frames.

My objective is that I have Windows Form called "Main". In the fom
"Main", I need 2 section in vertically.

One section called "section1" to keep "Menu Options" and other section
called "section2".

"section1" will be used to place "menu options". "section2" content
would be dynamic where I need to load "forms" based "menu option" user
click from "section1".

See the Splitter control.
 
T

Tarakeshwar L

Hi,

You could have the panel in the main form. The common menu controls could be
in this panel, as u load a child form you could add the menu options of that
child form to the main form panel.

When common menu controls are clicked, you would load a new form. When you
click on the child form menu options you could do the necessary action or
load a different form.
 
S

sqlak sqlak

thanks for all the help..

I will be trying by creating of a sample application as you as advised.
any issues I will get back to you.

Many thanks..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top