Selecting items in listbox

  • Thread starter Thread starter miller504
  • Start date Start date
M

miller504

I'm trying to select several items from a listbox. My code is working
except when the form loads the first time. I have the code to select the
items inside sub Initialize_CbLeague. If I call sub Initialize_CbLeague
after the form loads the items are selected correctly. Is there a way to
initialize the listbox after the form as loaded?

I using Vb.net.
Public Sub New()

MyBase.New()

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

Initialize_CbLeague()

End Sub



Thanks
 
Have you tried calling "Initialize_CbLeague" in the Load event handler, or
in the OnLoad override?
 
Back
Top