ok, yeah. This is also good. I didn't know this...cats wrote:Oh alrightz3r0aCc3Ss wrote: No, not error message. Error means, that message box appears...
Ok, as everything is happening in form_load event, I put the breakpoints on those four methods. It comes to check_usage() method and gives error and then it still proceeds with rest part execution (which should not happen).
Application.Exit doesn't force the application to close.
Try this insteadCode: Select all
http://msdn.microsoft.com/en-us/library/system.windows.forms.application.exit%28v=vs.71%29.aspx
Code: Select all
http://msdn.microsoft.com/en-us/library/system.environment.exit.aspx
It forces the application to exit. Hmm... that also can be implemented.