Simple one for you guys i hope, bit of a newbie at this:
i have a text box that i need to be filled in i have a statement to display a text box if it is blank which works but it still moves on to the next screen how do i end the process if it is blank and display the message?
Private Sub NewToolStripMen uItem_Click(ByV al sender As System.Object, ByVal e As System.EventArg s) Handles NewToolStripMen uItem.Click
If TextBox1.Text = "" Then MsgBox("Fill in Name") Else
Label6.Text = TextBox1.Text
TextBox1.Hide()
Label5.Hide()
Label6.Show()
Label7.Show()
This is what i got thanks for your help
i have a text box that i need to be filled in i have a statement to display a text box if it is blank which works but it still moves on to the next screen how do i end the process if it is blank and display the message?
Private Sub NewToolStripMen uItem_Click(ByV al sender As System.Object, ByVal e As System.EventArg s) Handles NewToolStripMen uItem.Click
If TextBox1.Text = "" Then MsgBox("Fill in Name") Else
Label6.Text = TextBox1.Text
TextBox1.Hide()
Label5.Hide()
Label6.Show()
Label7.Show()
This is what i got thanks for your help
Comment