|
-
Jul 30th, 2004, 12:13 PM
#1
Thread Starter
New Member
Events on grids
Hi, (I am newbie in VBasic)
How I can handle events on data grids?,
example:
If I have an single textbox and I can do this
AddHandler TextBox1.KeyPress, AddressOf keypressed
...
...
Sub keypressed(ByVal o As [Object], ByVal e As KeyPressEventArgs)
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
Me.SelectNextControl(o, True, True, False, True)
e.Handled = True
End If
End Sub
this works fine in textbox, but I dont know how to do this when the textbox is cointained in datagrid
System.Windows.Forms.DataGridTextBoxColumn
any ideas?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|