您好,欢迎访问三七文档
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;namespace_5._15{publicpartialclassfmmember:Form{publicfmmember(){InitializeComponent();}privatevoidbutton2_Click(objectsender,EventArgse){this.WindowState=FormWindowState.Minimized;}privatevoidbutton1_Click(objectsender,EventArgse){this.Close();}privatevoid会员_Load(objectsender,EventArgse){}//privatevoid打开ToolStripMenuItem_Click(objectsender,EventArgse)//{//}PointmouseOff;boolleftFlag;privatevoidfmmember_MouseUp(objectsender,MouseEventArgse){if(leftFlag){leftFlag=false;}}privatevoidfmmember_MouseMove(objectsender,MouseEventArgse){if(leftFlag){PointmouseSet=Control.MousePosition;mouseSet.Offset(mouseOff.X,mouseOff.Y);Location=mouseSet;}}privatevoidfmmember_MouseDown(objectsender,MouseEventArgse){if(e.Button==MouseButtons.Left){mouseOff=newPoint(-e.X,-e.Y);leftFlag=true;}}privatevoidbutton4_Click(objectsender,EventArgse){this.Close();}}}
本文标题:C界面的简单功能
链接地址:https://www.777doc.com/doc-2908586 .html