I created a form with a listbox. It always loads with the default text selected.
The problem is, I disabled the listbox until the user completes a previous step, yet the selection highlight remains (with unseen text.) I don't want a highlight until after the user selects an item.
Is there a way to hide the selection until the object is enabled and a selection is made? TIA
What I'm getting:
What I want:
(ListBox1 contains 4 items and is Disabled by default. Changing it to Enabled by default shows the text but I don't want the listbox enabled or the selection visible until the previous step is completed.)Code:Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load ListBox1.SelectedIndex = 0 ' This value will change in finished code. End Sub End Class




Reply With Quote
