[問題] ToolStripDropDown顯示的時候工作列會出現多餘視窗
我寫了一個測試用的程式
用來顯示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
→
03/03 23:32, , 1F
03/03 23:32, 1F
→
03/03 23:32, , 2F
03/03 23:32, 2F
→
03/03 23:33, , 3F
03/03 23:33, 3F