⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.cs

📁 写字板源代码都在要的自己可以下下来看自己看了就知道了
💻 CS
📖 第 1 页 / 共 3 页
字号:
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.IO;namespace WindowsApplication1{	/// <summary>	/// Form1 的摘要说明。	/// </summary>	public class Form1 : System.Windows.Forms.Form	{		private System.Windows.Forms.MainMenu mainMenu1;		private System.Windows.Forms.MenuItem menuWenjian;		private System.Windows.Forms.MenuItem menuBianji;		private System.Windows.Forms.MenuItem menuBaocun;		private System.Windows.Forms.MenuItem menuLingcunwei;		private System.Windows.Forms.MenuItem menuTuichu;		private System.Windows.Forms.MenuItem menuChexiao;		private System.Windows.Forms.MenuItem menuJianqie;		private System.Windows.Forms.MenuItem menuFuzhi;		private System.Windows.Forms.MenuItem menuQuanxuan;		private System.Windows.Forms.MenuItem menuNiantie;		private System.Windows.Forms.MenuItem menuShanchu;		private System.Windows.Forms.MenuItem menuGeshi;		private System.Windows.Forms.MenuItem menuBangzhu;		private System.Windows.Forms.MenuItem menuZiti;		private System.Windows.Forms.MenuItem menuGuanyuzhuti;		private System.Windows.Forms.MenuItem menuGuanyujishiben;		private System.Windows.Forms.ImageList imageList1;		private System.Windows.Forms.StatusBar statusBar1;		private System.Windows.Forms.ToolBarButton toolBarButton1;		private System.Windows.Forms.ToolBarButton toolBarButton2;		private System.Windows.Forms.ToolBarButton toolBarButton3;		private System.Windows.Forms.ToolBarButton toolBarButton4;		private System.Windows.Forms.ToolBarButton toolBarButton5;		private System.Windows.Forms.ToolBarButton toolBarButton8;		private System.Windows.Forms.ToolBarButton toolBarButton7;		private System.Windows.Forms.ToolBar toolBar1;		private System.Windows.Forms.RichTextBox richTextBox1;		private System.Windows.Forms.OpenFileDialog openFileDialog1;		private System.Windows.Forms.SaveFileDialog saveFileDialog1;		private System.Windows.Forms.MenuItem menuDakai;		private System.Windows.Forms.MenuItem menuXinjian;		private System.Windows.Forms.ContextMenu contextMenu1;		private System.Windows.Forms.NotifyIcon notifyIcon1;		private System.Windows.Forms.FontDialog fontDialog1;		private System.Windows.Forms.MenuItem menuChexiao2;		private System.Windows.Forms.MenuItem menuFengexian;		private System.Windows.Forms.MenuItem menuFengexian3;		private System.Windows.Forms.MenuItem menuFengexian4;		private System.Windows.Forms.MenuItem menuFengexian6;		private System.Windows.Forms.MenuItem menuJianqie2;		private System.Windows.Forms.MenuItem menuFuzhi2;		private System.Windows.Forms.MenuItem menuNiantie2;		private System.Windows.Forms.MenuItem menuShanchu2;		private System.Windows.Forms.MenuItem menuFengexian7;		private System.Windows.Forms.MenuItem menuQuanxuan2;		private System.Windows.Forms.MenuItem menuBeijingyanse;		private System.Windows.Forms.ColorDialog colorDialog1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.MenuItem menuItem5;		private System.ComponentModel.IContainer components;		public Form1()		{			//			// Windows 窗体设计器支持所必需的			//			InitializeComponent();			//			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码			//		}		/// <summary>		/// 清理所有正在使用的资源。		/// </summary>		protected override void Dispose( bool disposing )		{			if( disposing )			{				if (components != null) 				{					components.Dispose();				}			}			base.Dispose( disposing );		}		#region Windows 窗体设计器生成的代码		/// <summary>		/// 设计器支持所需的方法 - 不要使用代码编辑器修改		/// 此方法的内容。		/// </summary>		private void InitializeComponent()		{			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.menuWenjian = new System.Windows.Forms.MenuItem();
			this.menuXinjian = new System.Windows.Forms.MenuItem();
			this.menuDakai = new System.Windows.Forms.MenuItem();
			this.menuBaocun = new System.Windows.Forms.MenuItem();
			this.menuLingcunwei = new System.Windows.Forms.MenuItem();
			this.menuFengexian = new System.Windows.Forms.MenuItem();
			this.menuTuichu = new System.Windows.Forms.MenuItem();
			this.menuBianji = new System.Windows.Forms.MenuItem();
			this.menuChexiao = new System.Windows.Forms.MenuItem();
			this.menuFengexian3 = new System.Windows.Forms.MenuItem();
			this.menuJianqie = new System.Windows.Forms.MenuItem();
			this.menuFuzhi = new System.Windows.Forms.MenuItem();
			this.menuNiantie = new System.Windows.Forms.MenuItem();
			this.menuShanchu = new System.Windows.Forms.MenuItem();
			this.menuFengexian4 = new System.Windows.Forms.MenuItem();
			this.menuQuanxuan = new System.Windows.Forms.MenuItem();
			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.menuGeshi = new System.Windows.Forms.MenuItem();
			this.menuBeijingyanse = new System.Windows.Forms.MenuItem();
			this.menuZiti = new System.Windows.Forms.MenuItem();
			this.menuBangzhu = new System.Windows.Forms.MenuItem();
			this.menuGuanyuzhuti = new System.Windows.Forms.MenuItem();
			this.menuGuanyujishiben = new System.Windows.Forms.MenuItem();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.statusBar1 = new System.Windows.Forms.StatusBar();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.richTextBox1 = new System.Windows.Forms.RichTextBox();
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.menuChexiao2 = new System.Windows.Forms.MenuItem();
			this.menuFengexian6 = new System.Windows.Forms.MenuItem();
			this.menuJianqie2 = new System.Windows.Forms.MenuItem();
			this.menuFuzhi2 = new System.Windows.Forms.MenuItem();
			this.menuNiantie2 = new System.Windows.Forms.MenuItem();
			this.menuShanchu2 = new System.Windows.Forms.MenuItem();
			this.menuFengexian7 = new System.Windows.Forms.MenuItem();
			this.menuQuanxuan2 = new System.Windows.Forms.MenuItem();
			this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
			this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
			this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
			this.fontDialog1 = new System.Windows.Forms.FontDialog();
			this.colorDialog1 = new System.Windows.Forms.ColorDialog();
			this.SuspendLayout();
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuWenjian,
																					  this.menuBianji,
																					  this.menuItem1,
																					  this.menuGeshi,
																					  this.menuBangzhu});
			// 
			// menuWenjian
			// 
			this.menuWenjian.Index = 0;
			this.menuWenjian.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.menuXinjian,
																						this.menuDakai,
																						this.menuBaocun,
																						this.menuLingcunwei,
																						this.menuFengexian,
																						this.menuTuichu});
			this.menuWenjian.Text = "文件(&F)";
			this.menuWenjian.Click += new System.EventHandler(this.menuWenjian_Click);
			// 
			// menuXinjian
			// 
			this.menuXinjian.Index = 0;
			this.menuXinjian.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
			this.menuXinjian.Text = "新建(&N)";
			this.menuXinjian.Click += new System.EventHandler(this.menuXinjian_Click);
			// 
			// menuDakai
			// 
			this.menuDakai.Index = 1;
			this.menuDakai.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
			this.menuDakai.Text = "打开(&O)...";
			this.menuDakai.Click += new System.EventHandler(this.menuDakai_Click);
			// 
			// menuBaocun
			// 
			this.menuBaocun.Index = 2;
			this.menuBaocun.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
			this.menuBaocun.Text = "保存(&S)";
			this.menuBaocun.Click += new System.EventHandler(this.menuBaocun_Click);
			// 
			// menuLingcunwei
			// 
			this.menuLingcunwei.Index = 3;
			this.menuLingcunwei.Text = "另存为(&A)...";
			this.menuLingcunwei.Click += new System.EventHandler(this.menuLingcunwei_Click_1);
			// 
			// menuFengexian
			// 
			this.menuFengexian.Index = 4;
			this.menuFengexian.Text = "-";
			// 
			// menuTuichu
			// 
			this.menuTuichu.Index = 5;
			this.menuTuichu.Text = "退出(&X)";
			this.menuTuichu.Click += new System.EventHandler(this.menuTuichu_Click);
			// 
			// menuBianji
			// 
			this.menuBianji.Index = 1;
			this.menuBianji.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					   this.menuChexiao,
																					   this.menuFengexian3,
																					   this.menuJianqie,
																					   this.menuFuzhi,
																					   this.menuNiantie,
																					   this.menuShanchu,
																					   this.menuFengexian4,
																					   this.menuQuanxuan});
			this.menuBianji.Text = "编辑(&E)";
			// 
			// menuChexiao
			// 
			this.menuChexiao.Index = 0;
			this.menuChexiao.Shortcut = System.Windows.Forms.Shortcut.CtrlZ;
			this.menuChexiao.Text = "撤消(&U)";
			this.menuChexiao.Click += new System.EventHandler(this.menuChexiao_Click);
			// 
			// menuFengexian3
			// 
			this.menuFengexian3.Index = 1;
			this.menuFengexian3.Text = "-";
			// 
			// menuJianqie
			// 
			this.menuJianqie.Index = 2;
			this.menuJianqie.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
			this.menuJianqie.Text = "剪切(&T)";
			this.menuJianqie.Click += new System.EventHandler(this.menuJianqie_Click);
			// 
			// menuFuzhi
			// 
			this.menuFuzhi.Index = 3;
			this.menuFuzhi.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
			this.menuFuzhi.Text = "复制(&C)";
			this.menuFuzhi.Click += new System.EventHandler(this.menuFuzhi_Click);
			// 
			// menuNiantie
			// 
			this.menuNiantie.Index = 4;
			this.menuNiantie.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
			this.menuNiantie.Text = "粘贴(&P)";
			this.menuNiantie.Click += new System.EventHandler(this.menuNiantie_Click);
			// 
			// menuShanchu
			// 
			this.menuShanchu.Index = 5;
			this.menuShanchu.Shortcut = System.Windows.Forms.Shortcut.Del;
			this.menuShanchu.Text = "删除(&L)";
			this.menuShanchu.Click += new System.EventHandler(this.menuShanchu_Click);
			// 
			// menuFengexian4
			// 
			this.menuFengexian4.Index = 6;
			this.menuFengexian4.Text = "-";
			// 
			// menuQuanxuan
			// 
			this.menuQuanxuan.Index = 7;
			this.menuQuanxuan.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
			this.menuQuanxuan.Text = "全选(&A)";
			this.menuQuanxuan.Click += new System.EventHandler(this.menuQuanxuan_Click);
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 2;
			this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem2,
																					  this.menuItem3,
																					  this.menuItem4,
																					  this.menuItem5});
			this.menuItem1.Text = "工具栏(&T)";
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 0;
			this.menuItem2.Text = "计算长方形面积";
			this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 1;
			this.menuItem3.Text = "计算圆的面积或球的体积";
			this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 2;
			this.menuItem4.Text = "员工加工资的条目";
			this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 3;
			this.menuItem5.Text = "计算一元二次方程";
			this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click_1);
			// 
			// menuGeshi
			// 
			this.menuGeshi.Index = 3;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -