Im trying to launch a dialog by invoking several methods from a windows forms assembly. My app is a console app. All the execution logic goes well and without exceptions, but the window is not launched. Is it a known issue that you cant launch a windows form from a console app?
相关问题
- C# how to invoke a field initializer using reflect
- Get all classes of a package
- Java-Reflection - find the Arguments and the annot
- Java - How to get annotations from Proxy class?
- Limiting a String length on a property
相关文章
- Are GetCallingAssembly() and GetExecutingAssembly(
- Why doesn't reflections.getSubTypesOf(Object.c
- Load a .NET assembly from the application's re
- Get list of classes in namespace in C# [duplicate]
- How to get struct field names in Rust? [duplicate]
- Issue creating ImmutableMap with Class<?> as
- TYPE_USE annotations get lost when type is nested,
- How to know that Process has crashed
well, yes. You have to have a Windows message loop for this to work. If you create a Forms application from scratch, you'll see the Program.cs module created with
... Application.Run(new YourMainForm())
in it. Run is basically the message pump - having that is pretty much a requirement for forms to work.