System.Windows.Forms.ContainerControl.ProcessDialogKey(System.Windows.Forms.Keys)

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

7 Examples 7

1. Example

Project: NClass
Source File: Canvas.cs
protected override bool ProcessDialogKey(Keys keyData)
		{
			Keys key = (keyData & ~Keys.Modifiers);
			
			if (key == Keys.Up || key == Keys.Down)
				return false;
			else
				return base.ProcessDialogKey(keyData);
		}

2. Example

Project: NClass
Source File: Canvas.cs
protected override bool ProcessDialogKey(Keys keyData)
		{
			Keys key = (keyData & ~Keys.Modifiers);
			
			if (key == Keys.Up || key == Keys.Down)
				return false;
			else
				return base.ProcessDialogKey(keyData);
		}

3. Example

Project: Krypton
Source File: VisualPopup.cs
protected override bool ProcessDialogKey(Keys keyData)
        {
            // Cannot process a message for a disposed control
            if (!IsDisposed)
            {
                // If the user pressed the escape key
                if (keyData == Keys.Escape)
                {
                    // Kill ourself
                    Dispose();

                    // Yes, we processed the message
                    return true;
                }
            }

            return base.ProcessDialogKey(keyData);
        }

4. Example

Project: P8Coder
Source File: FastColoredTextBox.cs
protected override bool ProcessDialogKey(Keys keyData)
        {
            if ((keyData & Keys.Alt) > 0)
            {
                if (HotkeysMapping.ContainsKey(keyData))
                {
                    ProcessKey(keyData);
                    return true;
                }
            }

            return base.ProcessDialogKey(keyData);
        }

5. Example

Project: BaijiGenerator.Net
Source File: FastColoredTextBox.cs
protected override bool ProcessDialogKey(Keys keyData)
        {
            if ((keyData & Keys.Alt) > 0)
            {
                if (HotkeysMapping.ContainsKey(keyData))
                {
                    ProcessKey(keyData);
                    return true;
                }
            }

            return base.ProcessDialogKey(keyData);
        }

6. Example

Project: dash-core
Source File: FastColoredTextBox.cs
protected override bool ProcessDialogKey(Keys keyData)
        {
            if ((keyData & Keys.Alt) > 0)
            {
                if (HotkeysMapping.ContainsKey(keyData))
                {
                    ProcessKey(keyData);
                    return true;
                }
            }

            return base.ProcessDialogKey(keyData);
        }

7. Example

Project: ynoteclassic
Source File: FastColoredTextBox.cs
protected override bool ProcessDialogKey(Keys keyData)
		{
			if ((keyData & Keys.Alt) > 0)
			{
				if (HotkeysMapping.ContainsKey(keyData))
				{
					ProcessKey(keyData);
					return true;
				}
			}

			return base.ProcessDialogKey(keyData);
		}