FormA中的button按键如下:
private void button1_Click(object sender, System.EventArgs e)
{
this.ComboBox.SelectedIndex = 0x28;//改变当前窗口
}
FormB 中的button按钮代码如下:
private void button1_Click(object sender, System.EventArgs e)
{
public FormA my=new FormA();
my.ComboBox1.SelectedIndex=0x28;//改变窗体A中控件属性
} |