G
Guest
My project has several winforms. There is an button BtnDisplay in the startup form MainFrm
By clicking BtnDisplay, a new form SecondFrm will display using statements as
Dim SecondFrm as new Form
SecondFrm.ShowDialog(
I also put a BtnBack on SecondFrm. After clicking BtnBack, the SecondFrm is supposed to close and the MainFrm should display. However, after I clicked the BtnBack, the SecondFrm is closed as I expected and MainFrm appears. However, the application stops and I got the error message:
An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in system.windows.forms.dl
Additional information: External component has thrown an exception
Can you help figure it out
By clicking BtnDisplay, a new form SecondFrm will display using statements as
Dim SecondFrm as new Form
SecondFrm.ShowDialog(
I also put a BtnBack on SecondFrm. After clicking BtnBack, the SecondFrm is supposed to close and the MainFrm should display. However, after I clicked the BtnBack, the SecondFrm is closed as I expected and MainFrm appears. However, the application stops and I got the error message:
An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in system.windows.forms.dl
Additional information: External component has thrown an exception
Can you help figure it out