![]() |
|
|
| Subject:
VB.NET Combo box with "Intellisense"-like code behaves differently on W2k,WinM e
Category: Computers > Programming Asked by: gethelp-ga List Price: $2.00 |
Posted:
22 Nov 2002 09:30 PST
Expires: 09 Dec 2002 01:51 PST Question ID: 112599 |
VB.NET Combo box with "Intellisense"-like code behaves differently in
W2k and on WinMe. Here is the code, where cbName is a combobox with
drop down list of names:
Private Sub cbName_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles cbName.KeyPress
If (SaveMode <> tSaveMode.NewPatient) Then
Dim n As Integer
n = sender.FindString(sender.Text)
If n < 0 Then
sender.Text = LastFoundName
sender.SelectionStart = sender.Text.Length
Else
LastFoundName = sender.Text
sender.SelectedIndex = n
sender.Select(LastFoundName.Length, sender.Text.Length
- LastFoundName.Length)
End If
e.Handled = True
End If
End Sub
It perfectly works when installed on Win2k and does not work at all on
WinME.
Any Ideas?
Thamks. |
|
| There is no answer at this time. |
|
| There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
| Search Google Answers for |
| Google Home - Answers FAQ - Terms of Service - Privacy Policy |