Hi
I am very new to VB (and this forum) so I hope I am putting this in the correct place.
After checking a value in a text box I am having trouble re-dispalying the dialog box and setting the cursor to the empty field. Can anyone help.
Many thanks
Public Class frmCategory
Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click
If Me.txtCategory.Text = "" Then
MsgBox("Field Can not be Blank : " & Label1.Text)
RELOAD THE DIALOG and SET THE CURSOR To the EMPTY TEXT BOX
End If
'Me.Hide()
End Sub
I am very new to VB (and this forum) so I hope I am putting this in the correct place.
After checking a value in a text box I am having trouble re-dispalying the dialog box and setting the cursor to the empty field. Can anyone help.
Many thanks
Public Class frmCategory
Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click
If Me.txtCategory.Text = "" Then
MsgBox("Field Can not be Blank : " & Label1.Text)
RELOAD THE DIALOG and SET THE CURSOR To the EMPTY TEXT BOX
End If
'Me.Hide()
End Sub