0

Hi,
I'm developing a window-based application where I've a Main Form A. I open another form B on a button click. When I close Form B, I want to reload the Form A.
Please help as soon as possible.
Thanks in anticipation.

3
Contributors
5
Replies
8
Views
6 Years
Discussion Span
Last Post by NamrataC
0

Yes I can use the above code. But my problem is that FormA is already open and when I code FrmA.Show it creates a new instance of the same form without closing the previous one.

0

ok now i lost you. You have FormA already open while FormB is open too and on closing FormB you wanna do what exactlly? Updating the content of FormA or starting a complete new FormA?

0
''on form1 button click event write this code
formb.show()
formA.Hide()
''on formb's close button event write this code

formA.show()
formB.close()
0

Hi,
I got the solution.
While moving from FormA to FormB, i.e., on button click of FormA
this.Close();
FormB.Show();

On Closing of Form B,
FormA.Show();

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.