Exemplo n.º 1
0
 public static void ChangeComboBoxValue(Form parentForm, ComboBox ctrl)
 {
     if (parentForm.InvokeRequired)
     {
         ChangeComboBoxValueHandler method = new ChangeComboBoxValueHandler(ChangeComboBoxValueMethod);
         parentForm.BeginInvoke(method, new object[] { ctrl });
     }
     else
     {
         ChangeComboBoxValueMethod(ctrl);
     }
 }
Exemplo n.º 2
0
 public static void ChangeComboBoxValue(Form parentForm, ComboBox ctrl)
 {
     if (parentForm.InvokeRequired)
     {
         ChangeComboBoxValueHandler method = new ChangeComboBoxValueHandler(ChangeComboBoxValueMethod);
         parentForm.BeginInvoke(method, new object[] { ctrl });
     }
     else
     {
         ChangeComboBoxValueMethod(ctrl);
     }
 }