2012-08-28 120 views
0

我想要做的是,当程序从combobox1开始自动选择值为0或1窗体加载组合框的DropDownList

组合框的DropDownList: - 是 - (值为0) - 否 - (价值1)

我尝试这样的事情,但没有工作

// ------------------- StartUP Load 
private void Form1_Load(object sender, EventArgs e) 
{ 
comboBox4.SelectionStart = 0; 
} 
+1

[免费提供的编程书籍的列表](http://stackoverflow.com/questions/194812/list-of-freely-available-programming-books) –

回答

2

尝试

comboBox4.SelectedIndex = 0; 

这应该从“是”开始。如果你想要启动它在没有再使用

comboBox4.SelectedIndex = 1;