I'm facing a small problem with my message boxes. If I run the program directly (as in, double clicking it and using it from there), they work fine.
I have some .ext files than when double clicked, run through the program (they are associated with my program). Now when message boxes run through there, they are shown, but they are minimized and I have to manually click them on the Task Bar to see them.
Does anyone know why this is? I have this code running in my Program.cs:
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var MyForm = new Form1();
if (args.Length != 0)
{
MyForm.RunMsg(); // this is a function I am calling
Application.Exit();
}
else
Application.Run(MyForm);
}
Any help would be appreciated. And yes I can confirm the message boxes are only minimized when running the .ext files.