private void numPathfindId_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { btnPathfind_Click(null, null); } }