vb.net - How do I make it so that when a variable is true in "Form1," it does something in "Form2?" -
so, i'm trying make when user clicks login button on login form, sets variable true, makes activate on main form. pseudo code placed in form 2:
if form1.button = clicked end if
thanks help!
by way, i'm complete noob vb.net. sorry.
on button click event write below
if form1.button = clicked dim myform new form2 if loggedin = true myform.usergroupbox.visible = true me.close myform.show() end if end if
Comments
Post a Comment