Try-catch showdialog method

JohanNL

Member
Joined
Jan 31, 2008
Messages
7
Programming Experience
10+
In some code I found:

Try
frm.ShowDialog(Me)
Catch ex As Exception
End Try

Is it good to use the try-catch here?
 
I dont see any reason for using try catch for ShowDialog. why do wana use it any way???

He may want the ability to catch any unhandled exceptions from that window. I use this technique sometimes for narrowing down where exceptions occur, then I go back and put in better error handling after I see a new one
 
Back
Top