看板 C_Sharp 關於我們 聯絡資訊
我寫了一個測試用的程式 用來顯示ToolStripDropDown 雖然Show()沒問題.. 可是工作列會產生一個不知道哪裡來的假視窗XD 請問有辦法讓他不見嗎? 謝謝 using System; using System.Windows.Forms; class test { public static void Main() { ToolStripDropDown ToolStripDropDown1 = new ToolStripDropDown(); ToolStripDropDown1.Items.Add("結束", null, new EventHandler(Exit)); ToolStripDropDown1.Show(); Application.Run(); } private static void Exit(Object sender, EventArgs e) { Application.Exit(); } } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.138.155.189
megaman1206:我是要配合notifyicon使用的, 但是在預設情況是只能以 03/03 23:32
megaman1206:右鍵叫出..左鍵有什麼辦法可以叫出又不會有這種奇怪的 03/03 23:32
megaman1206:情況嗎? 03/03 23:33