Hi,
i was making a program ( a game) and i need to have a reset button which resets the entire game back to the beginning, so back to when the form was loaded, but i dont know how i should call on the sub. The sub is called Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
and the name of my button is cmdReset

thanks in advance;)

oke ive found out how to do this, but now i have another problem, after my game has been played once, the position of one of my buttons has changed and it has been unabled. how can i reset the form completely like it was at the start of the game? what code will i have to use for my reset button?

You need to set everything to its default value with the default form.

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.