一个WinForm记事本程序(包含主/下拉/弹出菜单/打开文件/保存文件/打印/页面设置/字体/颜色对话框/剪切版操作等等控件用法以及记事本菜单[2]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

  #region Windows Form Designer generated code
  /// <summary>
  /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  /// 此方法的内容。
  /// </summary>
  private void InitializeComponent()
  {
   this.textBoxEdit = new System.Windows.Forms.TextBox();
   this.mainMenu1 = new System.Windows.Forms.MainMenu();
   this.menuItemFile = new System.Windows.Forms.MenuItem();
   this.menuItemNew = new System.Windows.Forms.MenuItem();
   this.menuItemOpen = new System.Windows.Forms.MenuItem();
   this.menuItemSave = new System.Windows.Forms.MenuItem();
   this.menuItemSaveAs = new System.Windows.Forms.MenuItem();
   this.menuItem8 = new System.Windows.Forms.MenuItem();
   this.menuItemPageSet = new System.Windows.Forms.MenuItem();
   this.menuItemPrint = new System.Windows.Forms.MenuItem();
   this.menuItem11 = new System.Windows.Forms.MenuItem();
   this.menuItemExit = new System.Windows.Forms.MenuItem();
   this.menuItemEdit = new System.Windows.Forms.MenuItem();
   this.menuItemUndo = new System.Windows.Forms.MenuItem();
   this.menuItem14 = new System.Windows.Forms.MenuItem();
   this.menuItemCut = new System.Windows.Forms.MenuItem();
   this.menuItemCopy = new System.Windows.Forms.MenuItem();
   this.menuItemPaste = new System.Windows.Forms.MenuItem();
   this.menuItemDel = new System.Windows.Forms.MenuItem();
   this.menuItem19 = new System.Windows.Forms.MenuItem();
   this.menuItemSelAll = new System.Windows.Forms.MenuItem();
   this.menuItemFormat = new System.Windows.Forms.MenuItem();
   this.menuItemWordWrap = new System.Windows.Forms.MenuItem();
   this.menuItem22 = new System.Windows.Forms.MenuItem();
   this.menuItemFont = new System.Windows.Forms.MenuItem();
   this.menuItemColor = new System.Windows.Forms.MenuItem();
   this.SuspendLayout();
   //
   // textBoxEdit
   //
   this.textBoxEdit.AcceptsTab = true;
   this.textBoxEdit.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
   this.textBoxEdit.Cursor = System.Windows.Forms.Cursors.Arrow;
   this.textBoxEdit.Dock = System.Windows.Forms.DockStyle.Fill;
   this.textBoxEdit.Location = new System.Drawing.Point(0, 0);
   this.textBoxEdit.MaxLength = 2000000;
   this.textBoxEdit.Multiline = true;
   this.textBoxEdit.Name = "textBoxEdit";
   this.textBoxEdit.ScrollBars = System.Windows.Forms.ScrollBars.Both;
   this.textBoxEdit.Size = new System.Drawing.Size(442, 393);
   this.textBoxEdit.TabIndex = 0;
   this.textBoxEdit.Text = "Hello ChengKing !";
   this.textBoxEdit.WordWrap = false;
   this.textBoxEdit.TextChanged += new System.EventHandler(this.textBoxEdit_TextChanged);
   //
   // mainMenu1
   //
   this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                       this.menuItemFile,
                       this.menuItemEdit,
                       this.menuItemFormat});
   //
   // menuItemFile
   //
   this.menuItemFile.Index = 0;
   this.menuItemFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                       this.menuItemNew,
                       this.menuItemOpen,
                       this.menuItemSave,
           &nb

本文关键:一个WinForm记事本程序(包含主/下拉/弹出菜单/打开文件/保存文件/打印/页面设置/字体/颜色对话框/剪切版操作等等控件用法以及记事本菜单事件/按键事件的具体代码)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top