当我按Enter键时,它不会转到DatagridView_Keydown,但当我按两次Enter键时,它可以正常工作。我的目标是按回车键一次来执行produre。下面是我的代码:
Private Sub DatagridView_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridV
printf("please enter the row you want to place your %d ship in\n",length);记住loops until a ship location is found{ printf("please enter,length);
scanf("%c",&