visual basic-navagating through forms
i have to do a dialog for a company and it contains many forms and link between the forms. for example if i want a button in the menu to navagate the user to form 2 where they can proceed further. what is the code to use? simple navagtion code to take the user to wriet forms.
ill be waiting for ur response, many thanks
Re: visual basic-navagating through forms
Re: visual basic-navagating through forms
In your click event of either a menu item or button just show your new form and either hide or unload your first form.
Code:
Form2.Show
Form1.Visible = True
'Or
'Unload Form2
Re: visual basic-navagating through forms
hi, i am struggling with a simple login form. i have already created the rest of the forms and now want to have a login form as my first form. i have tried the following code but nothin is comming up. please help !!
If txtusername.Text = "20620752" Then
End If
If txtpassword.Text = "lizan" Then
End If
'Accepted, continue to frmmainmenu.Show, Else Msg("Wrong Password") End IF Else Msg("Wrong Username")End IF
Re: visual basic-navagating through forms
Is this what you want?
Code:
If txtusername.Text = "20620752" Then
If txtpassword.Text = "lizan" Then
frmmainmenu.Show
Else
Msgbox "Wrong Password"
End If
Else
Msgbox "Wrong Username"
End If