How can I do in a function, that when the person gives enter, it jumps to the field below, which can be both a combobox and a textbox?
I currently have this function, but it jumps to the last textbox, thus logging in, without going through the combobox first
public void pulaProxCampo(object sender, KeyEventArgs e)
{
if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return))
{
this.SelectNextControl((Control)sender, true, true, true, true);
}
}
Do you need to do a field validation to see if they are empty?