日期:2014-05-16 浏览次数:20811 次
public XmlDocument document = new XmlDocument();private void pbBtn_MouseUp(object sender, MouseEventArgs e)
{
if (this.create_Btn)
{
Button button1 = null;
button1 = new Button();
button1.Width = 80;
button1.Height = 35;
button1.Name = "Button" + BtnCount;
button1.AutoSize = true;
button1.Text = "Button" + BtnCount;
button1.Location = new Point(e.X - 108, e.Y + 30);
button1.MouseDown += new System.Windows.Forms.MouseEventHandler(Button_MouseDown);
button1.MouseMove += new System.Windows.Forms.MouseEventHandler(Button_MouseMove);
button1.MouseUp += new System.Windows.Forms.MouseEventHandler(Button_MouseUp);
button1.MouseLeave += new System.EventHandler(MyMouseLeave);
button1.Enter += new System.EventHandler(BtnEnter);
button1.KeyDown += new KeyEventHandler(MykeyDown);
button1.KeyUp += new KeyEventHandler(MykeyUp);
button1.Cursor = System.Windows.Forms.Cursors.Default;
this.panel1.Controls.Add(button1);
this.listbtn.Add(button1);
&n