private void PerformExpandOrCollapse(SWF.ComboBox combobox, bool droppedDown) { if (combobox.InvokeRequired == true) { combobox.BeginInvoke(new PerformExpandOrCollapseDelegate(PerformExpandOrCollapse), new object [] { combobox, droppedDown }); return; } combobox.DroppedDown = droppedDown; }
public void SetComboBoxText(ComboBox anything, string text) { anything.BeginInvoke((MethodInvoker)delegate { try { anything.Text = text; } catch { } }); }
public void SetComboBoxState(ComboBox anything, bool state) { anything.BeginInvoke((MethodInvoker)delegate { try { anything.Enabled = state; } catch { } }); }
public void SetComboBoxSelectItem(ComboBox anything, string text) { anything.BeginInvoke((MethodInvoker)delegate { try { anything.SelectedItem = text; } catch { } }); }