Write the code below for the OK button on the Login Form. Notice that some code was already written. Read the Todo note for additional ideas about how to use the login form.
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click If Me.UsernameTextBox.Text = "Joe" And Me.PasswordTextBox.Text = "password" Then Form1.Show() End If Me.Close() End Sub 'OK_Click
When you run the program the Splash Screen will show first. When you click on the Splash Screen Form1 will show.
An MDI form is similar to Word. In word, you can have several documents open at the same time within one "parent" form. When you click "new" you get a blank document that you can type in. In this project we will use a MDI parent form to display pictures in several "child" forms.