C# MTAThread 应用程序上的 OpenFileDialogs
好的,我知道 OpenFileDialogs 需要 STAThread,但我想从控制台应用程序启动表单,因此我为表单创建一个线程,这样我可以在使用表单时将内容打印到控制台,问题是如果我想使用 OpenFileDialogs 那么我无法打印到控制台!
Ok, I know that OpenFileDialogs needs STAThread, but i want to start the form from a console application, so I create a Thread for the Form that way I can print things to the console while working with the form, the problem is that if I want to use OpenFileDialogs then I can not print to the console!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WinForms 应用程序的控制台输出
http://www.csharp411.com/console-output-from-winforms -应用程序/
Console Output from a WinForms Application
http://www.csharp411.com/console-output-from-winforms-application/