By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,142 Members | 1,900 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,142 IT Pros & Developers. It's quick & easy.

Using Splitter with C#

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.