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.

Add into the Form closing event the following code

dim frmA as new FormA
frmA.show

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.

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?

''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()

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();

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.