M
muser8
I've encountered a very bizarre situation: a form's Initialize
Component is not called and excution doesn't reach the code
immediately following the call to initialize component. So in the
following code sample the fist message box appears but the second does
not. A few quick facts:
- The form in question is being created by a parent form.
- No exceptions are thrown.
- If a MessageBox.Show is added to InitializeComponent,
that message box does not get displayed.
Here is the code fragement.
public Preview(DataSet dataSet, SomeObject someObject) {
MessageBox.Show("1");
this.InitializeComponent();
MessageBox.Show("2");
}
Any ideas would be very much appreciated.
Thanks,
Sean
Component is not called and excution doesn't reach the code
immediately following the call to initialize component. So in the
following code sample the fist message box appears but the second does
not. A few quick facts:
- The form in question is being created by a parent form.
- No exceptions are thrown.
- If a MessageBox.Show is added to InitializeComponent,
that message box does not get displayed.
Here is the code fragement.
public Preview(DataSet dataSet, SomeObject someObject) {
MessageBox.Show("1");
this.InitializeComponent();
MessageBox.Show("2");
}
Any ideas would be very much appreciated.
Thanks,
Sean