|
-
May 19th, 2003, 10:31 AM
#1
Thread Starter
New Member
Key Event
I have a datagrid that has a notes column, I want the user to be able to hit enter in the grid and have it go to the next line like when ctrl enter is hit.
In other words I want to program the enter key to be the ctrl enter key for that datagrid. Thanks
Jim
-
May 19th, 2003, 10:37 AM
#2
Frenzied Member
-
May 19th, 2003, 10:41 AM
#3
Let me in ..
Re: Key Event
Originally posted by jazz823
I have a datagrid that has a notes column, I want the user to be able to hit enter in the grid and have it go to the next line like when ctrl enter is hit.
In other words I want to program the enter key to be the ctrl enter key for that datagrid. Thanks
Jim
VB Code:
Option Explicit
Private Sub DataGrid1_KeyPress(KeyAscii As Integer)
On Error Resume Next
If KeyAscii <> vbKeyReturn Then Exit Sub
DataGrid1.Row = DataGrid1.Row + 1
On Error GoTo 0
End Sub
-
May 19th, 2003, 10:59 AM
#4
Thread Starter
New Member
close
Thanks Marc and others,
Marc your suggestion sent me to the next row, where I was looking to go was a new line like a carriage return, so that the note can continue in the same line. I did not want the end user to have to remeber ctrl+enter
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
|