VB.NET
ListBox1.Items.FindByValue(<Value>).Selected = true
’ListBox1.Items.FindByText(<Text>).Selected = true
C#
ListBox1.Items.FindByValue(<Value>).Selected = true;
//ListBox1.Items.FindByText(<Text>).Selected = true;
VB.NET
ListBox1.Items.FindByValue(<Value>).Selected = true
’ListBox1.Items.FindByText(<Text>).Selected = true
C#
ListBox1.Items.FindByValue(<Value>).Selected = true;
//ListBox1.Items.FindByText(<Text>).Selected = true;
Share with