Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将一个窗口显示为通知窗口(不使用 NotifyIcon),但我不希望当前应用程序在显示时失去焦点。我怎么能这样做? 我正在使用:
private void alert(string msg = "", string link = "", bool bip = true) { this.Invoke((MethodInvoker)delegate { Form2.Show(); } }
本文展示了如何通过重写 CreateParams 方法来“显示表单而不窃取焦点”。