ListBoxItem Class

 
Note: This API is now obsolete.

Represents an item in a ListBox or ComboBox control in an application that was upgraded from Visual Basic 6.0.

Namespace:   Microsoft.VisualBasic.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.Compatibility (in Microsoft.VisualBasic.Compatibility.dll)

System.Object
  Microsoft.VisualBasic.Compatibility.VB6.ListBoxItem

[ObsoleteAttribute("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public class ListBoxItem

NameDescription
System_CAPS_pubmethodListBoxItem(String)

Initializes an instance of the ListBoxItem class.

System_CAPS_pubmethodListBoxItem(String, Int32)

Initializes an instance of the ListBoxItem class.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Converts a ListBoxItem to a String.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubfieldItemData

Stores the ItemData value for an item in a ListBox or ComboBox control in an application that was upgraded from Visual Basic 6.0.

System_CAPS_pubfieldItemString

Stores the List value for an item in a ListBox or ComboBox control in an application that was upgraded from Visual Basic 6.0.

In Visual Basic 6.0, the ListBox and ComboBox controls use a List property to store list items and an ItemData property to optionally store an Integer associated with each list item. In Visual Basic, the ListBox and ComboBox controls use the Items property to store list items, and the ItemData property is no longer supported.

When a Visual Basic 6.0 application is upgraded to Visual Basic, the upgrade tools create a ListBoxItem class for each item in a ListBox or ComboBox control. The SetItemData and GetItemData functions can then be used to enable any code that references the ItemData property.

System_CAPS_noteNote

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: