I have cascading listboxes, where the content of one depends upon the value selected in the previous.
I want to preselect the first item in the list box by default, so I use this:
I want to preselect the first item in the list box by default, so I use this:
me.ListBox.Selected(1) = True
The problem is when I check the value of the selected item, I get myValue = null as below:
myValue = me.ListBox.Value
I know I could use me.ListBox.ItemData(1), but for my own future reference I was hoping to confirm whether Selected = True has only a visual effect.