|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Datagridview use ENTER key instead of the TAB key.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/library/system.windows.forms.datagridview.processdialogkey.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) ============================================================== Hi,
http://www.vb-tips.com/dbpages.aspx?ID=7409566f-d502-4214-a7f5-5b9aca81e27c Ken ------------------------ Show quoteHide quote "Scotty" <Marc@nomails.invalid> wrote in message news:OX2D1z8AHHA.992@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/library/system.windows.forms.datagridview.processdialogkey.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) > ============================================================== >
Learning OOP conceptual question
File Aging Program convert idl to c# or tlb update database through SQL script Iterating through a Hastable of objects Problem Adding and Using Resource Files Passing values to another web page Find a control on a form of a specific name Re-size label text Debugging UserControl |
|||||||||||||||||||||||