R
rsine
I just started working with inherited forms and am being befuddled with
how to show the inherited form. As a test, I designed Form1 with a
single button on it and added an inherited form that inherits from
Form1. When my application starts, I would like to have both forms
show at the same time. How can this be done? I tried placing the
following code in the Form1_Load event:
Dim form2 As New InheritedForm
form2.Show()
but this gives me the following error:
An unhandled exception of type 'System.ComponentModel.Win32Exception'
occurred in system.windows.forms.dll
Additional information: Error creating window handle.
What am I doing incorrectly that is generating this error?
-Thanks
how to show the inherited form. As a test, I designed Form1 with a
single button on it and added an inherited form that inherits from
Form1. When my application starts, I would like to have both forms
show at the same time. How can this be done? I tried placing the
following code in the Form1_Load event:
Dim form2 As New InheritedForm
form2.Show()
but this gives me the following error:
An unhandled exception of type 'System.ComponentModel.Win32Exception'
occurred in system.windows.forms.dll
Additional information: Error creating window handle.
What am I doing incorrectly that is generating this error?
-Thanks