Microsoft KB Archive/181281

= BUG: ListBox Text Property Not Functional =

Article ID: 181281

Article Last Modified on 3/11/2005

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0
 * Microsoft eMbedded Visual Basic 3.0

-



This article was previously published under Q181281



SYMPTOMS
The Text property of a ListBox always returns an empty string.



RESOLUTION
Use the List and ListIndex properties to return the text of the currently selected item. For example, use: Dim sMyString sMyString = List1.List(List1.ListIndex)

instead of: Dim sMyString sMyString = List1.Text



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Additional query words: vbce wince vbce6 evb

Keywords: kbbug kbtoolkit kbpending KB181281

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.