TAB por ENTER
20/02/2007
0
galera fiz um esquema para trocar o TAB pelo ENTER porém cada vez qeu teclo enter para passar funciona tranquilamente, porém da um bip no windows, qual o problema...abaixo código
if (e.KeyChar == (char)Keys.Enter)
{
if ((this.ActiveControl is TextBox) |
(this.ActiveControl is CheckBox) |
(this.ActiveControl is ComboBox) |
(this.ActiveControl is RadioButton) |
(this.ActiveControl is ListBox) |
(this.ActiveControl is ListControl) |
(this.ActiveControl is MaskedTextBox))
{
SelectNextControl(this.ActiveControl, true, true, false, true);
}}
if (e.KeyChar == (char)Keys.Enter)
{
if ((this.ActiveControl is TextBox) |
(this.ActiveControl is CheckBox) |
(this.ActiveControl is ComboBox) |
(this.ActiveControl is RadioButton) |
(this.ActiveControl is ListBox) |
(this.ActiveControl is ListControl) |
(this.ActiveControl is MaskedTextBox))
{
SelectNextControl(this.ActiveControl, true, true, false, true);
}}
Gm.gui
Curtir tópico
+ 0
Responder
Posts
12/03/2007
Rogick
Olá amigo, poderia colocar por favor a sua solução, pois estou com o mesmo problema, e tb para q outros possam se beneficiar dela.
Obrigado.
Obrigado.
Responder
Clique aqui para fazer login e interagir na Comunidade :)