Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,338 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,797 people online right now. Registration is fast and FREE... Join Now!




Releasing a Pressed Key

 
Reply to this topicStart new topic

Releasing a Pressed Key

jays3710
2 Sep, 2008 - 03:38 AM
Post #1

New D.I.C Head
*

Joined: 2 Sep, 2008
Posts: 1

Hi,

Can any one help me in releasing a pressed key in the keyboard through Code in VB.Net.

Otherwise help me how to suppress Ctrl key in a DataGridView when it is used with click event

Regards,
Jayaseelan
User is offlineProfile CardPM
+Quote Post

dineeshd
RE: Releasing A Pressed Key
2 Sep, 2008 - 03:55 AM
Post #2

D.I.C Addict
Group Icon

Joined: 30 Jun, 2008
Posts: 578



Thanked: 16 times
Dream Kudos: 575
My Contributions
May be this will be helpfull to you....

vb
Private Sub DataGridView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyDown
If e.KeyCode = Keys.ControlKey Then
e.SuppressKeyPress = True
End If
End Sub

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 08:09AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month