I have a .net ComboBox on a windows form that is populated with a datatable.
I have a public function that populates this combobox
When this function is called post the Show event of the form where the combo box resides it works perfect.
However if I call this command Pre the Show event, The combobox selected value does not change.
I need to get it to function pre.
Any suggestions on a workaround?
I have a public function that populates this combobox
VB.NET:
Public sub mypublicFunction()
me.CB_MyComboBox.SelectedValue = "IL"
end sub
When this function is called post the Show event of the form where the combo box resides it works perfect.
However if I call this command Pre the Show event, The combobox selected value does not change.
I need to get it to function pre.
Any suggestions on a workaround?