Hi,
I like to convert the following codes from c# to VC++2010. Any help for me?

Actually the codes for dataGridView - Enter Key process for cursor movement from one cell to another cell [like a tab key...]

public class MyDataGrid : DataGridView
{
protected override bool ProcessDialogKey(Keys keyData)
{
Keys key = keyData & Keys.KeyCode;
if (key == Keys.Enter)
{
base.OnKeyDown(new KeyEventArgs(keyData));
return true;
}
else
{
return base.ProcessDialogKey(keyData);
}
}
}