Quote Originally Posted by LeandroA View Post
when form2 is unload value should go back to 0, but this does not happen check it out
When forms are unloaded, their GUI portions are unloaded: controls, menus, etc. Declarations are not reset. As mentioned, setting the form to Nothing after its unloaded will reset those variables. If you don't do that, then you should manually reset the variables during the form's load or unload event