I'm attempting to convert a very small C# console application to WPF application. It takes in some parameters, does some work, and may bring up a MessageBox.
I'm moving it from a console app to WPF because it should run invisible, unless it has an error message.
The hitch, so far, has been getting it to show the MessageBox. The following is the really short version, that compiles, runs... but does not show the MessageBox.
namespace MyApp{
public class EntryPoint {
[STAThread]
public static void Main(string[] args) {
App app = new App();
app.Run();
MessageBox.Show("test", "test", MessageBoxButton.YesNo, MessageBoxImage.Question);
}
}
}
Anyone know how to get that pesky MessageBox to show, without having a main program window?