471,354 Members | 1,042 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

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
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 22568

- 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...


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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.