C# ComboBox .SelectedValue not working
I am at my wit's end with this stuff. What is wrong with this code?
myComboBox.Items.Clear();
myComboBox.Items.AddRange(new string[]{"one","two"});
myComboBox.SelectedValue = "one";
It is showing up with nothing selected.
It is taking a lot of restraint to not append several curses to this post.
No comments:
Post a Comment