C# 项目开发全程实录 (第3版) 第8个项目:人事管理系统 如何生成mouseup事件
发表在C#图书答疑
2014-10-20
是否精华
是
否
版块置顶:
是
否
请问 例子中每个控件的最后一行都有:+= new System.Windows.Forms.MouseEventHandler(this.User_Folk_MouseUp); 我的怎么没有出来这一行,请问如何生成这行代码,另 此行调用的函数的作用是什么呢?
this.groupBox2.Text = "权限";
//
// User_Setup
//
this.User_Setup.AutoSize = true;
this.User_Setup.Location = new System.Drawing.Point(123, 182);
this.User_Setup.Name = "User_Setup";
this.User_Setup.Size = new System.Drawing.Size(72, 16);
this.User_Setup.TabIndex = 22;
this.User_Setup.Text = "用户设置";
this.User_Setup.UseVisualStyleBackColor = true;
this.User_Setup.MouseUp += new System.Windows.Forms.MouseEventHandler(this.User_Folk_MouseUp);
//
// User_NewLogon
//
this.User_NewLogon.AutoSize = true;
this.User_NewLogon.Location = new System.Drawing.Point(14, 182);
this.User_NewLogon.Name = "User_NewLogon";
this.User_NewLogon.Size = new System.Drawing.Size(72, 16);
this.User_NewLogon.TabIndex = 21;
this.User_NewLogon.Text = "重新登录";
this.User_NewLogon.UseVisualStyleBackColor = true;
this.User_NewLogon.MouseUp += new System.Windows.Forms.MouseEventHandler(this.User_Folk_MouseUp);
this.groupBox2.Text = "权限";
//
// User_Setup
//
this.User_Setup.AutoSize = true;
this.User_Setup.Location = new System.Drawing.Point(123, 182);
this.User_Setup.Name = "User_Setup";
this.User_Setup.Size = new System.Drawing.Size(72, 16);
this.User_Setup.TabIndex = 22;
this.User_Setup.Text = "用户设置";
this.User_Setup.UseVisualStyleBackColor = true;
this.User_Setup.MouseUp += new System.Windows.Forms.MouseEventHandler(this.User_Folk_MouseUp);
//
// User_NewLogon
//
this.User_NewLogon.AutoSize = true;
this.User_NewLogon.Location = new System.Drawing.Point(14, 182);
this.User_NewLogon.Name = "User_NewLogon";
this.User_NewLogon.Size = new System.Drawing.Size(72, 16);
this.User_NewLogon.TabIndex = 21;
this.User_NewLogon.Text = "重新登录";
this.User_NewLogon.UseVisualStyleBackColor = true;
this.User_NewLogon.MouseUp += new System.Windows.Forms.MouseEventHandler(this.User_Folk_MouseUp);