Skip to content

Combo box

Biju Varghese

Asked May 19, 2012, 4:18 AM EDT1 answer
Share
LinkedInX
How to put check so that cursor should not jump to next control without filling combo box ?

Regards,
Biju

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Dear Viju,
                           You can write this small code in combo box's Key Down or Lost focus event :

     If Len(ComboBox1.Text) = 0 Then
                MsgBox("Please provide a Value", MsgBoxStyle.Critical, "Message")
                Exit Sub
            End If
    0