468,765 Members | 1,279 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

Using Splitter with C#

This is my first try with C# windows gui devlopment, is it correct to
say that gui development in C# is windows forms.

I would like to create a form with two sections, 2 datagrids, I would
like
to have a splitter that will allow me to hide the datagrid either the
one on top
half or the one on the bottom half.

I am going thru this, but would appreciate some help in understanding
how the layout works.

thanks in advance
Nov 15 '05 #1
1 22473
Krish,

- Create a new form.

- Drop a datagrid on the form and set it's Dock property to Top.

- Drop a splitter on the form below the DataGrid and set its Dock property
to Top.

- Drop another datagrid on the form below the splitter and set its Dock
property to Fill.

There you go.

If you want a more complex arrangement you can use panels above and below
the splitter, and then position your controls on the panels as necessary.

You can also try something like a left-docked panel, followed by a
left-docked splitter and then a fill-docked panel. Then follow the
directions above, except dropping the datagrids and splitter onto the right
panel. That will give you a resizable area on the left, where you can put
something like an OutlookBar, with the datagrids on the right.

btw, if you want a nice OutlookBar component for free, see...

http://www.componentscience.net/elements/ex

--
Leit Rachsor

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by MooMaster | last post: by
2 posts views Thread by Hrcko | last post: by
5 posts views Thread by Sam | last post: by
2 posts views Thread by Istvan | last post: by
8 posts views Thread by Mr. X. | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.