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

📄 formkeyboard.cs

📁 用C#实现的数学常用函数的教学演示用程序.
💻 CS
📖 第 1 页 / 共 3 页
字号:
			this.button17.Size = new System.Drawing.Size(32, 23);
			this.button17.TabIndex = 59;
			this.button17.Text = "Cos";
			this.button17.Click += new System.EventHandler(this.button17_Click);
			// 
			// button16
			// 
			this.button16.BackColor = System.Drawing.SystemColors.InactiveCaption;
			this.button16.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button16.Location = new System.Drawing.Point(8, 96);
			this.button16.Name = "button16";
			this.button16.Size = new System.Drawing.Size(32, 23);
			this.button16.TabIndex = 58;
			this.button16.Text = "Sin";
			this.button16.Click += new System.EventHandler(this.button16_Click);
			// 
			// button15
			// 
			this.button15.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button15.Location = new System.Drawing.Point(408, 176);
			this.button15.Name = "button15";
			this.button15.Size = new System.Drawing.Size(32, 23);
			this.button15.TabIndex = 57;
			this.button15.Text = "-";
			this.button15.Click += new System.EventHandler(this.button15_Click);
			// 
			// button14
			// 
			this.button14.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button14.Location = new System.Drawing.Point(360, 176);
			this.button14.Name = "button14";
			this.button14.Size = new System.Drawing.Size(32, 23);
			this.button14.TabIndex = 56;
			this.button14.Text = "+";
			this.button14.Click += new System.EventHandler(this.button14_Click);
			// 
			// button13
			// 
			this.button13.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button13.Location = new System.Drawing.Point(408, 136);
			this.button13.Name = "button13";
			this.button13.Size = new System.Drawing.Size(32, 23);
			this.button13.TabIndex = 55;
			this.button13.Text = "/";
			this.button13.Click += new System.EventHandler(this.button13_Click);
			// 
			// button12
			// 
			this.button12.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button12.Location = new System.Drawing.Point(360, 136);
			this.button12.Name = "button12";
			this.button12.Size = new System.Drawing.Size(32, 23);
			this.button12.TabIndex = 54;
			this.button12.Text = "*";
			this.button12.Click += new System.EventHandler(this.button12_Click);
			// 
			// button11
			// 
			this.button11.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button11.Location = new System.Drawing.Point(248, 216);
			this.button11.Name = "button11";
			this.button11.Size = new System.Drawing.Size(32, 23);
			this.button11.TabIndex = 53;
			this.button11.Text = "DEL";
			this.button11.Click += new System.EventHandler(this.button11_Click);
			// 
			// button10
			// 
			this.button10.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button10.Location = new System.Drawing.Point(192, 216);
			this.button10.Name = "button10";
			this.button10.Size = new System.Drawing.Size(32, 23);
			this.button10.TabIndex = 52;
			this.button10.Text = "0";
			this.button10.Click += new System.EventHandler(this.button10_Click);
			// 
			// button9
			// 
			this.button9.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button9.Location = new System.Drawing.Point(192, 96);
			this.button9.Name = "button9";
			this.button9.Size = new System.Drawing.Size(32, 23);
			this.button9.TabIndex = 51;
			this.button9.Text = "7";
			this.button9.Click += new System.EventHandler(this.button9_Click);
			// 
			// button8
			// 
			this.button8.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button8.Location = new System.Drawing.Point(248, 96);
			this.button8.Name = "button8";
			this.button8.Size = new System.Drawing.Size(32, 23);
			this.button8.TabIndex = 50;
			this.button8.Text = "8";
			this.button8.Click += new System.EventHandler(this.button8_Click);
			// 
			// button7
			// 
			this.button7.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button7.Location = new System.Drawing.Point(304, 96);
			this.button7.Name = "button7";
			this.button7.Size = new System.Drawing.Size(32, 23);
			this.button7.TabIndex = 49;
			this.button7.Text = "9";
			this.button7.Click += new System.EventHandler(this.button7_Click);
			// 
			// button6
			// 
			this.button6.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button6.Location = new System.Drawing.Point(304, 136);
			this.button6.Name = "button6";
			this.button6.Size = new System.Drawing.Size(32, 23);
			this.button6.TabIndex = 48;
			this.button6.Text = "6";
			this.button6.Click += new System.EventHandler(this.button6_Click);
			// 
			// button5
			// 
			this.button5.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button5.Location = new System.Drawing.Point(248, 136);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(32, 23);
			this.button5.TabIndex = 47;
			this.button5.Text = "5";
			this.button5.Click += new System.EventHandler(this.button5_Click);
			// 
			// button4
			// 
			this.button4.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button4.Location = new System.Drawing.Point(248, 176);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(32, 23);
			this.button4.TabIndex = 46;
			this.button4.Text = "2";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// button3
			// 
			this.button3.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button3.Location = new System.Drawing.Point(304, 176);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(32, 23);
			this.button3.TabIndex = 45;
			this.button3.Text = "3";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// button2
			// 
			this.button2.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button2.Location = new System.Drawing.Point(192, 136);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(32, 23);
			this.button2.TabIndex = 44;
			this.button2.Text = "4";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// button1
			// 
			this.button1.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button1.Location = new System.Drawing.Point(192, 176);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(32, 23);
			this.button1.TabIndex = 43;
			this.button1.Text = "1";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// expressBox
			// 
			this.expressBox.Location = new System.Drawing.Point(96, 24);
			this.expressBox.Name = "expressBox";
			this.expressBox.Size = new System.Drawing.Size(264, 21);
			this.expressBox.TabIndex = 76;
			this.expressBox.Text = "";
			this.expressBox.TextChanged += new System.EventHandler(this.expressBox_TextChanged);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(88, 23);
			this.label1.TabIndex = 77;
			this.label1.Text = "请输入表达式:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// button34
			// 
			this.button34.BackColor = System.Drawing.SystemColors.InactiveCaption;
			this.button34.Font = new System.Drawing.Font("宋体", 15.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button34.ForeColor = System.Drawing.SystemColors.ControlText;
			this.button34.Location = new System.Drawing.Point(384, 24);
			this.button34.Name = "button34";
			this.button34.Size = new System.Drawing.Size(56, 40);
			this.button34.TabIndex = 78;
			this.button34.Text = "OK";
			this.button34.Click += new System.EventHandler(this.button34_Click);
			// 
			// button30
			// 
			this.button30.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button30.Location = new System.Drawing.Point(360, 216);
			this.button30.Name = "button30";
			this.button30.Size = new System.Drawing.Size(32, 23);
			this.button30.TabIndex = 79;
			this.button30.Text = "E";
			this.button30.Click += new System.EventHandler(this.button30_Click);
			// 
			// button35
			// 
			this.button35.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button35.Location = new System.Drawing.Point(112, 216);
			this.button35.Name = "button35";
			this.button35.Size = new System.Drawing.Size(32, 23);
			this.button35.TabIndex = 80;
			this.button35.Text = "X";
			this.button35.Click += new System.EventHandler(this.button35_Click);
			// 
			// button36
			// 
			this.button36.ForeColor = System.Drawing.SystemColors.HotTrack;
			this.button36.Location = new System.Drawing.Point(192, 56);
			this.button36.Name = "button36";
			this.button36.Size = new System.Drawing.Size(64, 23);
			this.button36.TabIndex = 81;
			this.button36.Text = "X";
			this.button36.Click += new System.EventHandler(this.button35_Click);
			// 
			// FormKeyBoard
			// 
			this.AcceptButton = this.button34;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.InactiveCaption;
			this.ClientSize = new System.Drawing.Size(456, 254);
			this.Controls.Add(this.button36);
			this.Controls.Add(this.button35);
			this.Controls.Add(this.button30);
			this.Controls.Add(this.button34);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.expressBox);
			this.Controls.Add(this.button33);
			this.Controls.Add(this.button32);
			this.Controls.Add(this.button31);
			this.Controls.Add(this.button29);
			this.Controls.Add(this.button28);
			this.Controls.Add(this.button27);
			this.Controls.Add(this.button26);
			this.Controls.Add(this.button25);
			this.Controls.Add(this.button24);
			this.Controls.Add(this.button23);
			this.Controls.Add(this.button22);
			this.Controls.Add(this.button21);
			this.Controls.Add(this.button20);
			this.Controls.Add(this.button19);
			this.Controls.Add(this.button18);
			this.Controls.Add(this.button17);
			this.Controls.Add(this.button16);
			this.Controls.Add(this.button15);
			this.Controls.Add(this.button14);
			this.Controls.Add(this.button13);
			this.Controls.Add(this.button12);
			this.Controls.Add(this.button11);
			this.Controls.Add(this.button10);
			this.Controls.Add(this.button9);
			this.Controls.Add(this.button8);
			this.Controls.Add(this.button7);
			this.Controls.Add(this.button6);
			this.Controls.Add(this.button5);
			this.Controls.Add(this.button4);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.MaximizeBox = false;
			this.Name = "FormKeyBoard";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "鼠标输入";
			this.TopMost = true;
			this.Closed += new System.EventHandler(this.FormKeyBoard_Closed);
			this.ResumeLayout(false);

		}
		#endregion


		private void button16_Click(object sender, System.EventArgs e)
		{
			expressBox.SelectedText=null;
			expressBox.Text=expressBox.Text.Insert(expressBox.SelectionStart,button16.Text);
			expressBox.SelectionStart=expressBox.TextLength;
			expressBox.Select();

⌨️ 快捷键说明

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