Help and Support

Article ID: 181281 - Last Review: March 11, 2005 - Revision: 3.2

BUG: ListBox Text Property Not Functional

This article was previously published under Q181281
Expand all | Collapse all

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.

APPLIES TO
  • Microsoft Windows CE Toolkit for Visual Basic 6.0
  • Microsoft eMbedded Visual Basic 3.0
Keywords: 
kbbug kbpending kbtoolkit KB181281

Article Translations