I can't switch back to a form i hide there was an error message. for example i used me.hide and form2.show on form1 and after doing something on form2 i wanted to switch back to form1 so i used me.hide and form1.show again.
but an error message is being displayed when i try to compile it and i created an instance of both forms prior to these.
also whenever i declare as something as a new instance of a form, i.e. Dim frm As New Form1 after the windows generated code or after the public class declaration, i get an error message that says "An unhandled exception of type 'System.StackoverflowException' occured in WindowsApplication1.exe and a yellow highlight is on the code Mybase.New()
Am i wrong in declaring that instance of a form after windows generated code or public class declaration since i want every subroutine to use it.
but an error message is being displayed when i try to compile it and i created an instance of both forms prior to these.
also whenever i declare as something as a new instance of a form, i.e. Dim frm As New Form1 after the windows generated code or after the public class declaration, i get an error message that says "An unhandled exception of type 'System.StackoverflowException' occured in WindowsApplication1.exe and a yellow highlight is on the code Mybase.New()
Am i wrong in declaring that instance of a form after windows generated code or public class declaration since i want every subroutine to use it.