C# 技能鉴定 第三单元 test 3_5

 1 using System;
 2 using System.Collections.Generic;
 3 using System.ComponentModel;
 4 using System.Data;
 5 using System.Drawing;
 6 using System.Linq;
 7 using System.Text;
 8 using System.Threading.Tasks;
 9 using System.Windows.Forms;
10 
11 namespace Test3_5
12 {
13     public partial class Form1 : Form
14     {
15         public Form1()
16         {
17             InitializeComponent();
18         }
19 
20         private void 上面ToolStripMenuItem_Click(object sender, EventArgs e)
21         {
22             this.label1.Top = 50;
23             this.toolStripStatusLabel1.Text = "上面";
24         }
25 
26         private void 中间MToolStripMenuItem_Click(object sender, EventArgs e)
27         {
28             this.label1.Top = 110;
29             this.toolStripStatusLabel1.Text = "中间";
30         }
31 
32         private void 下面DToolStripMenuItem_Click(object sender, EventArgs e)
33         {
34             this.label1.Top = 180;
35             this.toolStripStatusLabel1.Text = "下面";
36         }
37 
38         private void toolStripButton1_Click(object sender, EventArgs e)
39         {
40             this.label1.Top = 50;
41             this.toolStripStatusLabel1.Text = "上面";
42         }
43 
44         private void toolStripButton2_Click(object sender, EventArgs e)
45         {
46             this.label1.Top = 110;
47             this.toolStripStatusLabel1.Text = "中间";
48         }
49 
50         private void toolStripButton3_Click(object sender, EventArgs e)
51         {
52             this.label1.Top = 180;
53             this.toolStripStatusLabel1.Text = "下面";
54         }
55     }
56 }
原文地址:https://www.cnblogs.com/chenpengzhou/p/7563344.html