neuhawk

博客园 首页 新随笔 联系 订阅 管理
GOA WinForms  包含了System.Windows.Forms的主要内容,可以让你Microsoft Visual Studio开发Silverlight RIA(Silverlight 1.1 )和flash应用程序(用vs+c#开发flash)

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)



其开发方式,跟开发winform差不多,下面是主要代码 :
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(84140);  
      
this.button1.Name = "button1";  
      
this.button1.Size = new System.Drawing.Size(10436);  
      
this.button1.Text = "Click Me";  

      
this.label1.Location = new System.Drawing.Point(4044);  
      
this.label1.Name = "label1";  
      
this.label1.Size = new System.Drawing.Size(20044);  

      
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,不过感觉太慢了.
posted on 2007-06-25 08:40  neuhawk  阅读(4972)  评论(13编辑  收藏  举报