Private Sub cboTo1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboTo1.SelectedIndexChanged
Dim strUsername As String
Dim strFullName As String
Dim ctr As Integer
Try
For ctr = 0 To Me.DataGridView2.Rows.Count - 1
strUsername = Me.DataGridView2.Rows(ctr).Cells(0).Value.ToString.Trim
strFullName = Me.DataGridView2.Rows(ctr).Cells(1).Value.ToString.Trim
If Me.cboTo1.Text = strUsername Then
Me.ToolTipCombo.Show(strFullName, Me.cboTo1, 5000)
End If
Next
Catch
End Try
End Sub
Please I have about 15 combo boxes populated with usernames. Now, I have the full names of the users
stored in MSSQL database. When you select any username, then it should display the full name
of the selected user. This displays correctly when I select each combobox once. But when I select a
different username in the same combobox, the previously selected username's tooltip rather shows. e.g. For
the first time, I select credible and the tooltip shows "Ben Guff" as full name, and I select powerful,
then "Ben Guff" shows again. Please what could be the problem with code above? Please help. Ben