or is there anything you can add to make it more easier.. thanks again! OH BTW I'm using Visual Basic 2008 Express edition.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
Dim Message As String
Message = MsgBox("Please fill up the form.", MsgBoxStyle.Critical, "Confirmation")
TextBox2.Text = TextBox2.Text
TextBox1.Text = TextBox1.Text
TextBox3.Text = TextBox3.Text
TextBox4.Text = TextBox4.Text
TextBox5.Text = TextBox5.Text
Dim Message2 As String
Message2 = MsgBox("Are you sure you want to proceed?", MsgBoxStyle.YesNoCancel, "Confirmation")
If Message2 = vbYes Then
Me.Hide()
Form2.Show()
ElseIf Message2 = vbNo Then
Close()
End If
End Sub


Sign In
Create Account

Back to top









