M
Murthy
Hi All,
How do i catch the exception that has been thrown from my DragDrop event
handler.
The exception is fired from the following function.
private void richTextBox1_DragDrop(object sender, DragEventArgs e)
{
try{
///some code....}
catch(Exceptio e){
throw ex;}
}
I have tried with ThreadException
Application.ThreadException += new
ThreadExceptionEventHandler(ThreadExceptionHandler);
I have also tried with Unhandled Exception handler.
// Add the event handler for handling non-UI thread exceptions to the event.
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(UnhandledExceptionHandler);
Both of these do not catch the exception.
Can some one suggest me ?
How do i catch the exception that has been thrown from my DragDrop event
handler.
The exception is fired from the following function.
private void richTextBox1_DragDrop(object sender, DragEventArgs e)
{
try{
///some code....}
catch(Exceptio e){
throw ex;}
}
I have tried with ThreadException
Application.ThreadException += new
ThreadExceptionEventHandler(ThreadExceptionHandler);
I have also tried with Unhandled Exception handler.
// Add the event handler for handling non-UI thread exceptions to the event.
AppDomain.CurrentDomain.UnhandledException +=
new UnhandledExceptionEventHandler(UnhandledExceptionHandler);
Both of these do not catch the exception.
Can some one suggest me ?