Google Answers Logo
View Question
 
Q: VB.NET Combo box with "Intellisense"-like code behaves differently on W2k,WinM e ( No Answer,   0 Comments )
Question  
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.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy