Microsoft Windows Forms QuickStarts Tutorial - Getting Started
2005-10-30 22:20
429 查看
http://samples.gotdotnet.com/quickstart/winforms/
Dynamic Layout in Windows Forms
1。Anchoring
When a control is anchored to the edge of its container, the distance between the control and the specified edge remains constant when the container is resized. A control can be anchored to any combination of the edges of the container. If the control is anchored to opposite edges of its container, it is resized when the container is resized.
2。Docking
When a control is docked to the edge of its container, it remains in contact with that edge when the container is resized. If multiple controls are docked to one edge, the first is docked to the edge of the container, and the others are docked as close as possible to the edge without covering the others.
3。Custom Layout
You can write your own layout manager by using the Layout event that is exposed on the Control class. This event is raised whenever any event occurs that causes the control to display child controls. These events include Resize, show/hide child controls, and add/remove child controls. This event should be used to perform any custom layout logic.
Dynamic Layout in Windows Forms
1。Anchoring
When a control is anchored to the edge of its container, the distance between the control and the specified edge remains constant when the container is resized. A control can be anchored to any combination of the edges of the container. If the control is anchored to opposite edges of its container, it is resized when the container is resized.
2。Docking
When a control is docked to the edge of its container, it remains in contact with that edge when the container is resized. If multiple controls are docked to one edge, the first is docked to the edge of the container, and the others are docked as close as possible to the edge without covering the others.
3。Custom Layout
You can write your own layout manager by using the Layout event that is exposed on the Control class. This event is raised whenever any event occurs that causes the control to display child controls. These events include Resize, show/hide child controls, and add/remove child controls. This event should be used to perform any custom layout logic.
相关文章推荐
- Microsoft Windows Forms QuickStarts Tutorial - Building Applications
- Moving to Microsoft Windows Vista: Visual QuickProject Guide
- vss2008注册Microsoft.WindowsCE.Forms.dll
- 通过 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase 实现 WPF 单例启动
- CS0433: 类型“Microsoft.Reporting.WebForms.ReportViewer”同时存在于“c:/WINDOWS/assembly/GAC_MSIL/Microsoft.ReportViewer.WebForms/8.0.0.0_ 标签: cassembly
- WINCE Microsoft.WindowsCE.Forms.InputPanel使用注意
- CS0433: 类型“Microsoft.Reporting.WebForms.ReportViewer”同时存在于“c:/WINDOWS/assembly/GAC_MSIL/Microsoft.ReportViewer.WebForms/8.0.0.0_
- [微软云计算]Quick Lap around the Windows Azure Tools for Microsoft Visual Studio
- Microsoft.VisualBasic类库的一个小Bug(Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase bug)
- 推荐一个Flex的入门教程 Flex Quick Starts: Getting started
- Tutorial: Installing Python for GIMP 2.6 (Windows)
- 分析System.Windows.Forms.Timer和另两个Timer的重入行为
- CS0016: 未能写入输出文件“c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\921bbfc4\ca7cf42\App_Code.fu98jwep.dll”--“拒绝访问。 ”
- Windows Vista For Dummies Quick Reference
- 解决方案:Could not write to output file 'c:\windows\Microsoft.NET\Framework\........dll' -- '拒绝访问。 '
- Windows安装mysql-python提示:error: Microsoft Visual C++ 9.0 is required
- WindowsCE project missing Microsoft.CompactFramework.CSharp.targets in Visual Studio 2008
- Mercury QuickTest Professional Tutorial [翻译] (四)
- Dell 610 Windows 2012 R2 Microsoft-Windows-Hyper-V-Hypervisor event error 60
- 关于Microsoft Windows / Microsoft Office “VLK” 和“MAK”两种激活的异同?