How to work with Shortcut & Keyboard
-
If you know we have a thing that is named Accelerator in Visual C++ for working with shortcut and keyboard do we have any things like this in C#. if no; Please help me to impelement like this
Hello Friends
-
If you know we have a thing that is named Accelerator in Visual C++ for working with shortcut and keyboard do we have any things like this in C#. if no; Please help me to impelement like this
Hello Friends
Well, I don't no anything about Accelerator! What do you want to do In C#?
While (true) { Human.isLearnable = true; }
-
Well, I don't no anything about Accelerator! What do you want to do In C#?
While (true) { Human.isLearnable = true; }
-
I want to manage some Keys like "Alt+F4" ( for example for exit) but I don`t want use "KeyDown" event of controls can I do it in any way ?
Hello Friends
If this is WinForms, set the form's KeyPreview property to true and handle the form's various key events.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
I want to manage some Keys like "Alt+F4" ( for example for exit) but I don`t want use "KeyDown" event of controls can I do it in any way ?
Hello Friends
When you turn on KeyPreview, you can manage all events occurring by keyboard in Form_KeyDown:
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Modifiers == Keys.Alt && e.KeyCode == Keys.Q)
Application.Exit(); // It works when KeyPreview is true.
}While (true) { Human.isLearnable = true; }