引用:
jocosn寫到:
熊小,你可不可以用 notepad 寫個 VB .NET 的 window form,類似你的 C#
寫出來我佩服你~ :icons8
[jocosn 在 2004-8-31 06:15 PM 作了最後編輯]
因為有步驟可以跟~ 不用toolbar內的drag&drug~ 而自己寫是會麻煩~ 不過並非很困難~ 只是這樣做來幹嘛? ^^"
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
this.MyRTBox = new System.Windows.Forms.RichTextBox();
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.MyStatus = new System.Windows.Forms.StatusBar();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
this.SuspendLayout();
//
// MyRTBox
//
this.MyRTBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.MyRTBox.Location = new System.Drawing.Point(0, 0);
this.MyRTBox.Name = "MyRTBox";
this.MyRTBox.Size = new System.Drawing.Size(292, 306);
this.MyRTBox.TabIndex = 0;
this.MyRTBox.Text = "";
this.MyRTBox.TextChanged += new System.EventHandler(this.MyRTBox_TextChanged);
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem7});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem2,
this.menuItem3,
this.menuItem4,
this.menuItem5,
this.menuItem6});
this.menuItem1.Text = "&File";
//
// menuItem2
//
this.menuItem2.Index = 0;
this.menuItem2.Text = "&New File";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
//
// menuItem3
//
this.menuItem3.Index = 1;
this.menuItem3.Text = "&Open File";
this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
//
// menuItem4
//
this.menuItem4.Index = 2;
this.menuItem4.Text = "&Save File";
this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
//
// menuItem5
//
this.menuItem5.Index = 3;
this.menuItem5.Text = "-";
//
// menuItem6
//
this.menuItem6.Index = 4;
this.menuItem6.Text = "&Exit";
this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
//
// menuItem7
//
this.menuItem7.Index = 1;
this.menuItem7.Text = "&About";
this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
//
// MyStatus
//
this.MyStatus.Location = new System.Drawing.Point(0, 282);
this.MyStatus.Name = "MyStatus";
this.MyStatus.Size = new System.Drawing.Size(292, 24);
this.MyStatus.TabIndex = 1;
this.MyStatus.Text = "New File";
//
// openFileDialog1
//
this.openFileDialog1.Filter = "Text Files(*.txt)|*.txt|Rich Text Format Files(*.rtf)|*.rtf|All Files(*.*)|*.*";
//
// saveFileDialog1
//
this.saveFileDialog1.Filter = "Text Files(*.txt)|*.txt|Rich Text Format Files(*.rtf)|*.rtf|All Files(*.*)|*.*";
//
// printPreviewDialog1
//
this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0);
this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300);
this.printPreviewDialog1.Enabled = true;
this.printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon")));
this.printPreviewDialog1.Location = new System.Drawing.Point(132, 174);
this.printPreviewDialog1.MinimumSize = new System.Drawing.Size(375, 250);
this.printPreviewDialog1.Name = "printPreviewDialog1";
this.printPreviewDialog1.TransparencyKey = System.Drawing.Color.Empty;
this.printPreviewDialog1.Visible = false;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 15);
this.ClientSize = new System.Drawing.Size(292, 306);
this.Controls.Add(this.MyStatus);
this.Controls.Add(this.MyRTBox);
this.Menu = this.mainMenu1;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "NotePad (TWed2k Version)";
this.ResumeLayout(false);
}
#endregion
如果j大要熊用notepad寫一個VS.NET出來~ 那就真的不可能啦~