System.Windows.Forms.ComboBox.Select(int, int)

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 7

1. Example

Project: Krypton
Source File: KryptonComboBox.cs
View license
public void Select(int start, int length)
        {
            _comboBox.Select(start, length);
        }

2. Example

Project: bvcms
Source File: LoginSettings.cs
View license
public 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);
            }
        }

3. Example

Project: bvcms
Source File: LoginSettings.cs
View license
public 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);
            }
        }