Support.SetItemString(Control, Int32, String) Methode

Definitie

Let op

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Hiermee stelt u de ItemString eigenschap voor een ListBoxItem.

public:
 static void SetItemString(System::Windows::Forms::Control ^ Control, int Index, System::String ^ ItemString);
public static void SetItemString(System.Windows.Forms.Control Control, int Index, string ItemString);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static void SetItemString(System.Windows.Forms.Control Control, int Index, string ItemString);
static member SetItemString : System.Windows.Forms.Control * int * string -> unit
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member SetItemString : System.Windows.Forms.Control * int * string -> unit
Public Sub SetItemString (Control As Control, Index As Integer, ItemString As String)

Parameters

Control
Control

Een ListBoxListBox of ComboBox besturingselement.

Index
Int32

De Index van de ListBoxItem.

ItemString
String

Een String om toe te wijzen aan de ItemString eigenschap.

Kenmerken

Opmerkingen

Deze functie wordt gebruikt door de upgradehulpprogramma's om de eigenschap Visual Basic 6.0 List te emuleren. Gebruik in Visual Basic in plaats daarvan de eigenschap Items of Items.

Note

Functies en objecten in de naamruimte Microsoft.VisualBasic.Compatibility.VB6 worden gebruikt door de hulpprogramma's voor het upgraden van Visual Basic 6.0 naar Visual Basic 2008. In de meeste gevallen zijn deze functies en objecten dubbele functionaliteit die u kunt vinden in andere naamruimten in het .NET Framework. Ze zijn alleen nodig wanneer het codemodel Visual Basic 6.0 aanzienlijk verschilt van de .NET Framework-implementatie.

Van toepassing op