spacer
Yehuda Shiran September 5, 2002
Popping Up Docking Panels
Tips: September 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

We showed you yesterday how to create the three docking panels, topPanel, bottomPanel, and leftPanel, all confined to the container panel, basePanel. We also showed you how to create the label label1, the text box textbox1, and the button button1. We add the label to the left panel:

  leftPanel.Controls.Add(label1); 
We add the text box to the top panel:

  topPanel.Controls.Add(textBox1);
And the button is assigned to the bottom panel:

  bottomPanel.Controls.Add(button1);  
Finally, we need to add the base panel to the Windows form:

  this.Controls.Add(basePanel);
Suppose we call the package MultiplePanelResizeMe, and the class is MultiplePanelForm. We pop up the Windows form by calling Application.Run():

  Application.Run(new MultiplePanelResizeMe.MultiplePanelForm());
You should get the following form:

To learn more about JScript .NET and ASP.NET, go to Column 117, JScript .NET, Part XI: Creating Windows Forms.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business