Fail To reset the combobox.text

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

My code is so simple to reset the text or set text to blank after the user
choose the value in combobox.

Private Sub cboBLData_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cboBLData.SelectedIndexChanged
Select Case UCase(Me.cboBLData.Text)
Case "CNTR&MARKING"
Dim frmCntrMark As New frmSeaCntrMarking()
frmCntrMark.pHBLNo = Me.txtHBLNo.Text
frmCntrMark.ShowDialog()

End Select
-> Me.cboBLData.ResetText()
-> Me.cboBLData.Text = ""


Both code are file to set the blank text.
 
Back
Top