Sorry to hit you guys with the funnies but have only been programming in c#
for about a month. and the new MSDN 2003 is pretty useless
Here is my problem (or at least the concept thereof)
Have a c# windows app - 1 form (frmMain)
add another form frmException (handles excption is a pretty way)
add another form that throws an exception (frmThrow) and handles it by
calling frmException in Catch block using .ShowDialog();
call frmthrow with the .Showdialog() from frmMain and the exception sits on
top of both forms- great!
call frmthrow with the .Show() from frmMain and the exception sits on top
of frmThrow likw it should but I can go back to frmMain (although locked)
and I have to click on the taskbar to get back to the Exception and accept
this before continuing on frmMain.
I know .ShowDialog() has overridden method for passing the parent of the
form but why not .Show()?
Surely it should be clever enough to know either :
that a modal exception has occurred in the frmThrow and when you click on
frmMain (taskbar) it should still display the exception (frmException)
OR that a modal exception has occurred in the frmThrow and when you click on
frmMain (taskbar) it should allow you to continue working on frmMain.
Am I missing something?
thanks
J
for about a month. and the new MSDN 2003 is pretty useless
Here is my problem (or at least the concept thereof)
Have a c# windows app - 1 form (frmMain)
add another form frmException (handles excption is a pretty way)
add another form that throws an exception (frmThrow) and handles it by
calling frmException in Catch block using .ShowDialog();
call frmthrow with the .Showdialog() from frmMain and the exception sits on
top of both forms- great!
call frmthrow with the .Show() from frmMain and the exception sits on top
of frmThrow likw it should but I can go back to frmMain (although locked)
and I have to click on the taskbar to get back to the Exception and accept
this before continuing on frmMain.
I know .ShowDialog() has overridden method for passing the parent of the
form but why not .Show()?
Surely it should be clever enough to know either :
that a modal exception has occurred in the frmThrow and when you click on
frmMain (taskbar) it should still display the exception (frmException)
OR that a modal exception has occurred in the frmThrow and when you click on
frmMain (taskbar) it should allow you to continue working on frmMain.
Am I missing something?
thanks
J