We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how can i catch TAB key

Thread ID:

Created:

Updated:

Platform:

Replies:

1229 Oct 4,2002 04:23 PM UTC Oct 9,2002 07:47 AM UTC WinForms 1
loading
Tags: FAQ
aydinturker
Asked On October 4, 2002 04:23 PM UTC

how can i catch TAB key in winform datagrid? which event? how?

Administrator [Syncfusion]
Replied On October 9, 2002 07:47 AM UTC

I don't think you can catch the tabkey in an event. You can catch it by overriding ProcessDialogKey.
public class MyDataGrid : DataGrid
{
	protected override bool ProcessDialogKey(System.Windows.Forms.Keys keyData)
	{
		if(keyData == Keys.Tab)
		{
			Console.WriteLine("Keys.Tab");
			return true; //eat the key if this is what you want
		}
		return base.ProcessDialogKey(keyData);
	}
}
 

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;