Re: [2005]form_close method?
How do you open form2? On the timer.tick event?
Re: [2005]form_close method?
Yes the exact code is...
Code:
If player.Left >= PictureBox1.Left And player.Left <= PictureBox1.Left + PictureBox1.Width - player.Width And player.Top >= PictureBox1.Top And player.Top >= PictureBox1.Top + PictureBox1.Height - player.Height Then
frm_inn.Show()
Me.Hide()
End If
Re: [2005]form_close method?
i don't know what's the point...
but to solve this you have at least two options:
- you can move the picture box in the form1 to another position....
- you can stop the timer
As i said, i don't know what's the point...
If you can give some more details.
Re: [2005]form_close method?
By the way, you want to return to form1 or close the application?
And yes there's a form_closing method. You can put there all the actions, that you need to be performed when you close the form.
Re: [2005]form_close method?
umm i am making a RPG game and so far you move a dot on the screen with the arrow key and if the image is inside the second one the it shows the for that goes with that image. like if there was a picture of an inn on the form and you moved the image into it the it will show frm_inn and so on. and thank you for your help i cant believe i didnt think of that.