TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kevin
NA
1
0
Exception Handling
Dec 18 2005 1:57 AM
The following is for a windows application. If I was to cause a button click to throw an exception i.e. private void button6_Click(object sender, System.EventArgs e) { //simulate a crash by throwing an exception throw new Exception ("Simulated Crash"); } where would I catch this other than in this function? I tried catching it in the Form's main fuction : static void Main() { try { Application.Run(new Form1()); } catch (Exception ex) { Console.WriteLine (ex.ToString()); } } but it seems like I can't catch it there.
Reply
Answers (
0
)
type or namespace name 'Framework' could not be found
PID of an active connection