By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,132 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,132 IT Pros & Developers. It's quick & easy.

Datagridview use ENTER key instead of the TAB key.

P: n/a
Hi,

I am struggling with folowing problem,
I am a beginner of vbnet 2005
I have a datagridview and want to use ENTER key to move instead of the TAB
key.

On msdn i have found the code to use,
http://msdn2.microsoft.com/en-us/lib...dialogkey.aspx

I alreay made the Public Class CustomDataGridView
But I do not know how to declare and use the class on a correct way.
Is there someone who could me explain how to or send me an exxample?

Many thanks in advance
Marc.

================================================== =====
About
DataGridView.ProcessDialogKey Method
Processes keys, such as the TAB, ESCAPE, ENTER, and ARROW keys, used to
control dialog boxes.
Visual Basic (Declaration)
Protected Overrides Function ProcessDialogKey ( _
keyData As Keys _
) As BooleanVisual Basic (Usage)
Dim keyData As Keys
Dim returnValue As Boolean

returnValue = Me.ProcessDialogKey(keyData)
================================================== ============
Nov 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

http://www.vb-tips.com/dbpages.aspx?...5-5b9aca81e27c

Ken
------------------------
"Scotty" <Ma**@nomails.invalidwrote in message
news:OX*************@TK2MSFTNGP03.phx.gbl...
Hi,

I am struggling with folowing problem,
I am a beginner of vbnet 2005
I have a datagridview and want to use ENTER key to move instead of the
TAB key.

On msdn i have found the code to use,
http://msdn2.microsoft.com/en-us/lib...dialogkey.aspx

I alreay made the Public Class CustomDataGridView
But I do not know how to declare and use the class on a correct way.
Is there someone who could me explain how to or send me an exxample?

Many thanks in advance
Marc.

================================================== =====
About
DataGridView.ProcessDialogKey Method
Processes keys, such as the TAB, ESCAPE, ENTER, and ARROW keys, used to
control dialog boxes.
Visual Basic (Declaration)
Protected Overrides Function ProcessDialogKey ( _
keyData As Keys _
) As BooleanVisual Basic (Usage)
Dim keyData As Keys
Dim returnValue As Boolean

returnValue = Me.ProcessDialogKey(keyData)
================================================== ============
Nov 26 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.