摘要:
添加form的FormClosing事件 /// <summary> /// 主窗口自带的关闭按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { DialogResult result; result = MessageBox. 阅读全文
摘要:
/*评论超连接*/ LinkLabel llb = new LinkLabel(); //llb.Links[0].LinkData = "http://www.163.com"; llb.Text = "评论"; llb.AutoSize = true; llb.Location = new Point(270, 100 + i * 90); this.panel1.Controls.Add(llb); //注册标签的三个事件 llb.MouseLeave += new System.EventHandler(this.mouseLeave); llb 阅读全文