I've a method which fill a combobox. (compact framework 3.5)
for (int i = 0; i < list.Count; i++)
var item = new ListViewItem(list[i].value);
I want to do :
lstNiveaux.Items.Selected = true;
When I write that piece of code at the end of the previous method, it won't work but ... if I put a button with a click event, and the piece of code inside, it will work.
I tryied Application.DoEvents, Thread.Sleep and other stuff but no work. Does someone has a solution ?