G
Guest
Hey All,
What we are trying to achieve is, when Selected value changed event is fired
for a combo box, then we are trying to close the current form and display the
new form. The forms are mdi child of a MDI form named as MasterForm.
The code being used to close the current form and open the new form is as
follows:
lForm = new TestForm
lForm.MdiParent = Me.MdiParent
lForm.Show()
Me.Close()
Problem is on Selected value changed event, we get an unhandled exception,
Object reference not set to an instance of Object. I debugged and found that
while closing the current form, its throwing the error.
Can anyone please suggest this behaviour, is it a known issue.
Thanks,
Vinay Kant
What we are trying to achieve is, when Selected value changed event is fired
for a combo box, then we are trying to close the current form and display the
new form. The forms are mdi child of a MDI form named as MasterForm.
The code being used to close the current form and open the new form is as
follows:
lForm = new TestForm
lForm.MdiParent = Me.MdiParent
lForm.Show()
Me.Close()
Problem is on Selected value changed event, we get an unhandled exception,
Object reference not set to an instance of Object. I debugged and found that
while closing the current form, its throwing the error.
Can anyone please suggest this behaviour, is it a known issue.
Thanks,
Vinay Kant