filmov
tv
C# Tutorial - How to use a Combobox in C#.NET (code in Description)

Показать описание
private void Form1_Load(object sender, EventArgs e)
{
comboBox1.Items.Add("sel - 0");
comboBox1.Items.Add("sel -1");
comboBox1.Items.Add("sel -2");
comboBox1.Items.Add("sel -3");
}
private void comboBox1_SelectedIndexChanged_1(object sender, EventArgs e)
{
label1.Text = comboBox1.SelectedItem.ToString();
}
#c# #combobox #visualstudio #windowsforms #basiccodes #netframework
{
comboBox1.Items.Add("sel - 0");
comboBox1.Items.Add("sel -1");
comboBox1.Items.Add("sel -2");
comboBox1.Items.Add("sel -3");
}
private void comboBox1_SelectedIndexChanged_1(object sender, EventArgs e)
{
label1.Text = comboBox1.SelectedItem.ToString();
}
#c# #combobox #visualstudio #windowsforms #basiccodes #netframework