Skip to content

Commit 4e23796

Browse files
committed
Unfocus Conrols
unfocus controls when clicking the form
1 parent ccbc3b4 commit 4e23796

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Watermarker/Frm_Main.Designer.cs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Watermarker/Frm_Main.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,5 +883,17 @@ public string TrimTheEnd(string target, string trimString)
883883

884884
return result;
885885
}
886+
887+
private void mainPnl_Click(object sender, EventArgs e)
888+
{
889+
this.ActiveControl = lblMode;
890+
lblMode.Focus();
891+
}
892+
893+
private void Frm_Main_Click(object sender, EventArgs e)
894+
{
895+
this.ActiveControl = lblMode;
896+
lblMode.Focus();
897+
}
886898
}
887899
}

0 commit comments

Comments
 (0)