Here is a small snippet which will get the pressed char at keydown event. Sometimes we need to get Char at key down event rather than keypress event.
Many times we need to know executable path of Application and some time we need to know the path of assembly which is loaded. There are many options to get the location but not all are good as we think.
In this small snippet we will cover how to trap on Ctrl+C, Ctrl+V and Ctrl+X in TextBox KeyPress Event
If you handle the KeyDown event, the Modifiers property of the KeyEventArgs received by the event handler specifies which modifier keys are pressed. Alternatively, the KeyData property of KeyEventArgs specifies the character that was pressed as well as any modifier keys combined with a bitwise OR. However, if you are handling the KeyPress event or a mouse event, the event handler does not receive this information.
Flickering is common problem in windows forms DataGridView when we use huge data to display. Overcome this problem is tricky part which we will discuss in this small snippet.