谁能帮忙解释一下这段C#代码
privatevoidbutton6_Click(objectsender,EventArgse){mydrawtype=0;MyEditType=6;step=0;if...
private void button6_Click(object sender, EventArgs e)
{
mydrawtype = 0;
MyEditType = 6;
step = 0;
if (this.groupBox1.Visible)
ResetMicro();
if (this.pictureBox1.Cursor != Cursors.Default)
this.pictureBox1.Cursor = Cursors.Default;
this.groupBox4.visible = true;
this.groupBox4.Location = new Point(10, 239);
this.TextBox1.Text="";
this.TextBox1.Font=new Font("宋?体¬?",9,FontStyle.Regular);
this.TextBox1.ForeColor=Color.Black;
} 展开
{
mydrawtype = 0;
MyEditType = 6;
step = 0;
if (this.groupBox1.Visible)
ResetMicro();
if (this.pictureBox1.Cursor != Cursors.Default)
this.pictureBox1.Cursor = Cursors.Default;
this.groupBox4.visible = true;
this.groupBox4.Location = new Point(10, 239);
this.TextBox1.Text="";
this.TextBox1.Font=new Font("宋?体¬?",9,FontStyle.Regular);
this.TextBox1.ForeColor=Color.Black;
} 展开
1个回答
展开全部
private void button6_Click(object sender, EventArgs e)
{
mydrawtype = 0;//设置全局变量的值
MyEditType = 6;//设置全局变量的值
step = 0;//设置全局变量的值
if (this.groupBox1.Visible)//判定组合框可见
ResetMicro();//执行方法
if (this.pictureBox1.Cursor != Cursors.Default)//判定PictureBox1的鼠标图标不为默认
this.pictureBox1.Cursor = Cursors.Default;//则PictureBox1的鼠标图标为默认
this.groupBox4.visible = true;//GroupBox4控件可见
this.groupBox4.Location = new Point(10, 239);//GroupBox4的位置为(10,239)
this.TextBox1.Text="";//控件TextBox1的Text属性为空
this.TextBox1.Font=new Font("宋?体¬?",9,FontStyle.Regular);//控件TextBox1内的字体格式设置
this.TextBox1.ForeColor=Color.Black;//控件TextBox1的前景色为黑色,即输入字体着色为黑
}
{
mydrawtype = 0;//设置全局变量的值
MyEditType = 6;//设置全局变量的值
step = 0;//设置全局变量的值
if (this.groupBox1.Visible)//判定组合框可见
ResetMicro();//执行方法
if (this.pictureBox1.Cursor != Cursors.Default)//判定PictureBox1的鼠标图标不为默认
this.pictureBox1.Cursor = Cursors.Default;//则PictureBox1的鼠标图标为默认
this.groupBox4.visible = true;//GroupBox4控件可见
this.groupBox4.Location = new Point(10, 239);//GroupBox4的位置为(10,239)
this.TextBox1.Text="";//控件TextBox1的Text属性为空
this.TextBox1.Font=new Font("宋?体¬?",9,FontStyle.Regular);//控件TextBox1内的字体格式设置
this.TextBox1.ForeColor=Color.Black;//控件TextBox1的前景色为黑色,即输入字体着色为黑
}
追问
请问,你有QQ吗?能让你帮忙看看整个程序吗?
追答
这几天有事没有上线,
给你一个邮箱吧,dyzeke@qq.com
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询