0
How can I do in a function, that when the person der enter , he jumps to the bottom field , which can be both a combobox and a textbox?
I currently have this function , but it jumps to the last textbox , doing so log 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 or need to do a field validation to see if they are empty?
I always find it best to teach users to use the tab key
– Leandro Godoy Rosa