Guys! I have this form called gamePlay form. This form is showed by my loading form. When the gamePlay form is showed the loading form is closed. At the gameplay form i will be opening another form called congrats form. At congrats form I need to close the gamePlay form. How should I close the gameplay form from the congrats form. I tried creating an instance of the gamePlay form and obviously the gamePlay form won't close since the instance that opened gamePlay was not the one who closed it. I know it's a bit confusing. I hope some could help me.
Here is a code to explain what I meant:
loadingPageForm:
dim gp as gamePlay= new gamePlay()
gp.show()
me.close()
gamePlayForm:
dim cgp as congratsForm = new congratsform()
cgp.show()
congratsform:
'Here at the congrats form, I want to close the current opened gamePlayForm. How should I do it?
Here is a code to explain what I meant:
loadingPageForm:
dim gp as gamePlay= new gamePlay()
gp.show()
me.close()
gamePlayForm:
dim cgp as congratsForm = new congratsform()
cgp.show()
congratsform:
'Here at the congrats form, I want to close the current opened gamePlayForm. How should I do it?