Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / November 2006

Tip: Looking for answers? Try searching our database.

Datagridview use ENTER key instead of the TAB key.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scotty - 09 Nov 2006 07:02 GMT
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.proce
ssdialogkey.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)
==============================================================
Ken Tucker [MVP] - 26 Nov 2006 11:43 GMT
Hi,

http://www.vb-tips.com/dbpages.aspx?ID=7409566f-d502-4214-a7f5-5b9aca81e27c

Ken
------------------------
> Hi,
>
[quoted text clipped - 28 lines]
> returnValue = Me.ProcessDialogKey(keyData)
> ==============================================================

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.