tarunkapoor
Member
- Joined
- Apr 10, 2005
- Messages
- 17
- Programming Experience
- 3-5
I have the following code for a custom combo box that i have created. It is inherited from System.Windows.Forms.ComboBox
In the first messagebox, i dont get anything from Me.SelectedText, where i get the correct text in the second messageBox. Does anyone know why is this happening.
In the first messagebox, i dont get anything from Me.SelectedText, where i get the correct text in the second messageBox. Does anyone know why is this happening.
VB.NET:
Protected Overrides Sub OnSelectedIndexChanged(ByVal e As System.EventArgs)
MyBase.OnSelectedIndexChanged(e)
MessageBox.Show("Selected text now is: " & Me.SelectedText)
Dim key As String
For Each key In ht.Keys
If (ht(key).Equals(Me.SelectedText)) Then
_tag = key
End If
Next
MessageBox.Show("Selected text now is: " & Me.SelectedText)
End Sub