using (var MyProcess = new Process())
                    {
                        string path = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName);//获得当前程序运行的路径
                        MyProcess.StartInfo.FileName = path+@"\1.txt";
                        MyProcess.Start();
                        var handle = MyProcess.MainWindowHandle;
                        SetWindowPos(handle, HWND_TOPMOST, _XPOS, _YPOS, _XSIZE, _YSIZE, SWP_SHOWWINDOW);
                        MyProcess.WaitForExit();
                    }  发过一次帖,没有解决。。
问题描述:
在text文本打开的前提下,又按了这个button_click的话
文本关闭后又打开
有什么办法让他在不按这个button的时候 只能打开一次!
谢谢