【发布时间】:2021-02-11 05:23:36
【问题描述】:
当我从我的 FORM 中单击按钮时,单击按钮不起作用,但双击起作用。
请帮助我,如何解决并让我知道原因。 enter image description here
设计师代码是
// searchButton
//
this.searchButton.Cursor = System.Windows.Forms.Cursors.Hand;
this.searchButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.searchButton.Location = new System.Drawing.Point(100, 144);
this.searchButton.Name = "searchButton";
this.searchButton.Size = new System.Drawing.Size(97, 31);
this.searchButton.TabIndex = 0;
this.searchButton.Text = "Search";
this.searchButton.UseVisualStyleBackColor = true;
this.searchButton.Click += new System.EventHandler(this.searchButton_Click);
//
【问题讨论】:
-
欢迎来到 StackOverflow。我们中的一些人看不到图像。你能编辑嵌入它吗?