Snippets

Counting how many times a certain char appears in a string

Added by Mind Hunter updated on Monday, September 24, 2018

Here is a small snippet which will count the certain char in given string.


How to get pressed char from KeyEventArgs Winforms

Added by Mind Hunter updated on Thursday, May 10, 2018

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.


Trap on Ctrl+C, Ctrl+V and Ctrl+X in TextBox KeyPress Event

Added by Sixth Sense updated on Wednesday, March 28, 2018

In this small snippet we will cover how to trap on Ctrl+C, Ctrl+V and Ctrl+X in TextBox KeyPress Event


How to Know Which Modifier Key Was Pressed

Added by Sixth Sense updated on Wednesday, March 28, 2018

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.


How to prevent DataGridView from flickering |Blinking

Added by Sixth Sense updated on Wednesday, March 7, 2018

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.


About

29 Tutorials
25 Snippets
6 Products

More

Contact Us

Contact us

Stay Connected