我已成功地從StackOverflow上找到下面的代碼: using Microsoft.VisualBasic.ApplicationServices;
using System.Windows.Forms;
namespace ExciteEngine2.MainApplication {
public class SingleInstanceController: Wind
我實現了允許使用以下螺紋 Restoring window from the system tray when allowing only one instance of that program 它正在努力打開應用程序的單一實例,但當前打開的窗口不是restoring.I沒有使用MDI父concept.To導航窗體只是我用hide()和show()。 我試過從上面的線程codeproject鏈接