By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Try to defining Form B outside of Form A. When you are closing Form A, the reference to Form B is destroyed by implication and this is why it dies. You should always try to define forms and referencing material outside of the classes should you need them elsewhere. Otherwise, at times, this leads to such issues.
Dig Deeper on Win Development Resources
Related Q&A from Samuel Colak
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.