jeudi 27 décembre 2007

How to use splitters in the VS .Net Designer

Using splitters is not complicated as it sounds. Here is an example:

1. Draw a panel on the form

2. Draw a textbox on the panel ( TextBox1.width is ( 1/2 Panel1.width ) )

3. Set TexBox1's Dock property to Left

4. Draw a splitter on the panel and set its Dock property to Left

5. Run Your Application

6. Now resize your TextBox1 by dragging the splitter

The splitcontainer in VS 2005 is also very helpful.

Aucun commentaire: