SelectItemFromValue – Select the ListControl element with a given value

' Select the ListControl element with a given value' Example: SelectItemFromValue(ListBox1, "hellovalue")Sub SelectItemFromValue(ByVal lst As ListControl, ByVal value As String)    lst.SelectedIndex = lst.Items.IndexOf(lst.Items.FindByValue(value))End Sub

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: