A aa Feb 18, 2005 #1 How to write windows application in VB.NET , which on getting the error should restart
C cody Feb 18, 2005 #2 aa said: How to write windows application in VB.NET , which on getting the error should restart Click to expand... Maybe something like this (sorry if I got the syntax a bit twisted up Iam not VB programmer): TRY Application.Run(new MainForm()) CATCH e as Exception Process.Start("myapp.exe") END
aa said: How to write windows application in VB.NET , which on getting the error should restart Click to expand... Maybe something like this (sorry if I got the syntax a bit twisted up Iam not VB programmer): TRY Application.Run(new MainForm()) CATCH e as Exception Process.Start("myapp.exe") END
H Herfried K. Wagner [MVP] Feb 18, 2005 #3 cody said: Maybe something like this (sorry if I got the syntax a bit twisted up Iam not VB programmer): TRY Application.Run(new MainForm()) CATCH e as Exception Process.Start("myapp.exe") END Click to expand... I would at least ask the user if he/she wants to restart. Imagine an application that always causes the same error and thus will restart repeatedly.
cody said: Maybe something like this (sorry if I got the syntax a bit twisted up Iam not VB programmer): TRY Application.Run(new MainForm()) CATCH e as Exception Process.Start("myapp.exe") END Click to expand... I would at least ask the user if he/she wants to restart. Imagine an application that always causes the same error and thus will restart repeatedly.