12. Log In Form
This video tutorial will teach you how to create a simple log in form using Visual Basic .NET. The Log In Form is a combination of things that we have covered in previous tutorials. It also introduces a new part of the If Statement.
Code
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "password123" Then data.Show() Else MessageBox.Show("Wrong Password!") End If End Sub End Class

