Good day to Everybody!
I have searched in Internet (mostly in Google) about the problem I have and didn't find any answer or tip. Maybe I made the wrong questions. Anyway, the problem I have is the following: My application starts, it shows a splash screen with some text that tells the user what's going on. It stops if there's an error. Everything oke here, but in the MainForm_Load I have some procedures I call before showing the MainForm. Such procedures are made to: read the configuration file, license, etc. If there's an error, I show it to the user (MessageBox) and then I call Application.Exit() The problem is that it doesn't exit right away, it's like it keeps reading the remaining lines in the MainForm_Load and then exits. It shows the MainForm and then a MessageBox (I suppose this is the MessageBox's Exit Confirmation Window I created in MainForm_Closing) and exits quickly; all this like about 1 second. So, I was wondering if someone could show me the way to fix this little problem. I don't want to show the Windows, I want the application exit right away. I haven't posted my code but, if it's necessary please don't bother to ask! Ohh btw, I'm using VB.NET and Windows Vista if such information is important. Thanks in advance! PS My apologies for my bad english Regards, iDesmet
