BUG: ListBox Text Property Not Functional (181281)



The information in this article 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.

Modification Type:MinorLast Reviewed:3/11/2005
Keywords:kbBug kbpending kbToolkit KB181281