¡@

Home 

c# Programming Glossary: e.keycode

Adding a select all shortcut (Ctrl + A) to a .net listview?

http://stackoverflow.com/questions/1019388/adding-a-select-all-shortcut-ctrl-a-to-a-net-listview

void listView1_KeyDown object sender KeyEventArgs e if e.KeyCode Keys.A e.Control listView1.MultiSelect true foreach ListViewItem..

C# winforms combobox dynamic autocomplete

http://stackoverflow.com/questions/11780558/c-sharp-winforms-combobox-dynamic-autocomplete

void comboBox1_KeyUp object sender KeyEventArgs e if e.KeyCode Keys.Back int sStart comboBox1.SelectionStart if sStart 0..

Datagridview: How to set a cell in editing mode?

http://stackoverflow.com/questions/1814423/datagridview-how-to-set-a-cell-in-editing-mode

dataGridView1_KeyDown object sender KeyEventArgs e if e.KeyCode Keys.Tab dataGridView1.CurrentCell.ColumnIndex 1 e.Handled..

Best way to limit textbox decimal input in c#

http://stackoverflow.com/questions/3125463/best-way-to-limit-textbox-decimal-input-in-c-sharp

object sender System.Windows.Forms.KeyEventArgs e switch e.KeyCode case Keys.D0 case Keys.D1 case Keys.D2 case Keys.D3 case Keys.D4..

ComboBox AutoComplete on SubString

http://stackoverflow.com/questions/3694720/combobox-autocomplete-on-substring

Handles Me.KeyDown TempLogStart If Not SelectItem e.KeyCode Then If e.KeyCode Keys.Up Then If myLbox.SelectedIndex 0 Then.. TempLogStart If Not SelectItem e.KeyCode Then If e.KeyCode Keys.Up Then If myLbox.SelectedIndex 0 Then Call MoveLBox myLbox.SelectedIndex.. 0 Then Call MoveLBox myLbox.SelectedIndex 1 End If ElseIf e.KeyCode Keys.Down Then Call MoveLBox myLbox.SelectedIndex 1 End If End..

Best way to implement keyboard shortcuts in a Windows Forms application?

http://stackoverflow.com/questions/400113/best-way-to-implement-keyboard-shortcuts-in-a-windows-forms-application

something like this in the ChildForm_KeyDown event if e.KeyCode Keys.F Control.ModifierKeys Keys.Control Show search form But..

Konami Code in C#

http://stackoverflow.com/questions/469798/konami-code-in-c-sharp

object sender KeyEventArgs e if sequence.IsCompletedBy e.KeyCode MessageBox.Show KONAMI Hopefully that's enough to give you..

How to set hotkeys for a winform

http://stackoverflow.com/questions/5048748/how-to-set-hotkeys-for-a-winform

Form_KeyDown object sender KeyEventArgs e if e.Control e.KeyCode Keys.S Ctrl S Save do what you want here e.SuppressKeyPress..

Detecting if paste event occurred inside a rich text box

http://stackoverflow.com/questions/5618162/detecting-if-paste-event-occurred-inside-a-rich-text-box

KeyEventArgs e bool ctrlV e.Modifiers Keys.Control e.KeyCode Keys.V bool shiftIns e.Modifiers Keys.Shift e.KeyCode Keys.Insert.. e.KeyCode Keys.V bool shiftIns e.Modifiers Keys.Shift e.KeyCode Keys.Insert if ctrlV shiftIns DoSomething It works well but..

How do I capture Keys.F1 regardless of the focused control on a form?

http://stackoverflow.com/questions/5951496/how-do-i-capture-keys-f1-regardless-of-the-focused-control-on-a-form

a form I used KeyDown event and some simple code like if e.KeyCode Keys.F1 to capture F1 is pressed on a form BUT if there are..

how to handle key press event in console application

http://stackoverflow.com/questions/8898182/how-to-handle-key-press-event-in-console-application

private void keylogger KeyEventArgs e Console.Write e.KeyCode i want to know what should i type on main so i can call that..