GOA WinForms 支持 40多个 控件和组件:
- Control, ContainerControl, ScrollableControl, Panel
- Button, CheckBox, RadioButton, GroupBox, Label
- TextBox, NumericUpDown
- ImageBox, ImageList
- ScrollBar, HScrollBar, VScrollBar
- Form, MessageBox, Cursor
- ListBox, CheckedListBox
- ComboBox
- TreeView
- MonthCalendar
- TabControl, Splitter
- ToolTip, ProgressBar, Timer
- ToolStrip, StatusStrip, MenuStrip, ToolStripButton, ToolStripComboBox, ToolStripDropDown, ToolStripLabel, ToolStripProgressBar, ToolStripSeparator, ToolStripSplitButton, ToolStripTextBox
- XamlCanvas (Silverlight specific)
public
class
MyForm : System.Windows.Forms.Form
{
private Button button1;
private Label label1;
private System.ComponentModel.Container components = null;
public MyForm()
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
this.button1.Location = new System.Drawing.Point(84, 140);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(104, 36);
this.button1.Text = "Click Me";
this.label1.Location = new System.Drawing.Point(40, 44);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(200, 44);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.ResumeLayout(false);
}
public static void Main()
{
Application.Run(new MyForm());
}
}
{
private Button button1;
private Label label1;
private System.ComponentModel.Container components = null;
public MyForm()
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
this.button1.Location = new System.Drawing.Point(84, 140);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(104, 36);
this.button1.Text = "Click Me";
this.label1.Location = new System.Drawing.Point(40, 44);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(200, 44);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.ResumeLayout(false);
}
public static void Main()
{
Application.Run(new MyForm());
}
}
说明: GOA WinForms 是免费的。GOA WinForms Professional 是收费的,它包含了30多个扩展控件.
用winform的方式编写silverlight和flash,太爽啦.
还有一个类似的东西 http://www.codeplex.com/visualwebgui,用winform的形式开发web,不过感觉太慢了.