Here are the examples of the csharp api class System.Windows.Forms.ComboBox.Select(int, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
View licensepublic void Select(int start, int length) { _comboBox.Select(start, length); }
0
2. Example
View licensepublic void onKeyboardKeyPress(string key) { if (currentTextBox != null) { currentTextBox.Text += key; currentTextBox.Focus(); currentTextBox.Select(currentTextBox.Text.Length, 0); } else if (currentComboBox != null) { currentComboBox.Text += key; currentComboBox.Focus(); currentComboBox.Select(currentComboBox.Text.Length, 0); } }
0
3. Example
View licensepublic void onBackspaceKeyPress() { if (currentTextBox != null) { var t = currentTextBox.Text; var len = t.Length - 1; if (len < 0) len = 0; currentTextBox.Text = t.Substring(0, len); currentTextBox.Focus(); currentTextBox.Select(currentTextBox.Text.Length, 0); } else if (currentComboBox != null) { var t = currentComboBox.Text; var len = t.Length - 1; if (len < 0) len = 0; currentComboBox.Text = t.Substring(0, len); currentComboBox.Focus(); currentComboBox.Select(currentComboBox.Text.Length, 0); } }