System.Windows.Forms.ComboBox.ApplySelectedItem()

Here are the examples of the csharp api class System.Windows.Forms.ComboBox.ApplySelectedItem() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: Unity-WinForms
Source File: ComboBox.cs
View license
private void ListBoxOnMouseUp(object sender, MouseEventArgs mouseEventArgs)
        {
            if (mouseEventArgs.Button != MouseButtons.Left) return;

            ApplySelectedItem();
        }

2. Example

Project: Unity-WinForms
Source File: ComboBox.cs
View license
private void ListBoxOnKeyDown(object sender, KeyEventArgs keyEventArgs)
        {
            if (keyEventArgs.KeyCode != Keys.Return && keyEventArgs.KeyCode != Keys.Space) return;

            ApplySelectedItem();
        }

3. Example

Project: Unity-WinForms
Source File: ComboBox.cs
View license
protected override void OnKeyPress(KeyPressEventArgs args)
        {
            base.OnKeyPress(arg/n ..... /n //View Source file for more details /n }