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 NewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripMenuItem.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
Hi. Don't know about this Hide() method.
In VB6 to make a control disappear you need to set the visible property to false
TextBox1.Visible = False
and
TextBox1.Visible = True
To make it reappear