System.Windows.Forms.Application.PrevTabControl(Control)

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

1 Example 7

1. Example

Project: Unity-WinForms
Source File: Application.cs
public void ProccessKeys(KeyEventArgs args, KeyEvents keyEventType)
        {
            // Close context if possible.
            if (args.KeyCode == Keys.Escape && keyEventType == KeyEvents.Down)
            {
                if (Contexts.Count > 0)
                {
                    Contexts[0].Dispose();
                    return;
                }
            }

            // Raise keys on selected controls if possible.
            if (Control.lastSelected != null && Control.lastSelected.IsDisposed == false)
            {
                var keyControl = Control.lastSelected;

                // Tab switching through controls.
                if (TabSwitching && Event.current.keyCode == KeyCode.Tab && keyEventType == KeyEvents.Down)
                {
                    if (Event.current.modifiers == EventModifiers.None)
                        NextTabControl(keyControl);
                    else if (Event.current.modifiers == EventModifiers.Shift)
                        PrevTabControl(keyControl);
                }

                var parentForm = GetParentForm(Control.lastSelected);
                if (parentForm != null && parentForm.KeyPreview)
                    RaiseKeyEvent(args, keyEventType, parentForm); // Raise key event if keyPreview is used.

                RaiseKeyEvent(args, keyEventType, keyControl);
            }

            if (keyEventType == KeyEvents.Down)
                currentKeyDown = args.KeyCode;
        }