Capturing TAB event of a button Button
-
Check out this link http://www.wdvl.com/Authoring/Scripting/Tutorial/java\_event\_others.html Hope it will help u Navi
-
Hi, The only way I could capture the TAB key was on the KeyUp event
Do your best to be the best
-
Hi All, I have a button on my form. When the button is selected and TAB is hit, am not able to capture this event. How can I capture the tab event on a button? Its urgent, anykind of help is highly appreciated . Thanks in advance Regards Kais
Hello The best thing to do, I believe, would be to handle the
LostFocus
event. It will be fired when the button loses focus whether by the tab key or the mouse. Isn't this what you want? If not, please give more details.Regards:rose:
-
Hello The best thing to do, I believe, would be to handle the
LostFocus
event. It will be fired when the button loses focus whether by the tab key or the mouse. Isn't this what you want? If not, please give more details.Regards:rose:
Hi, Thank you for your quick response. As you mention, the lost focus (Leave event for the button) will get fired for both key board and mouse movements. I explicitly need to capture Tab event generated on the button so that I can set the focus to some other control on the form. The reason is, Am using MDI form and displays two child windows side by side. On the first child window, when the focus is on the last control and the user clicks on TAB, the focus should go to the first control of second child window. Hope things are clear and you might be in able to help me out. Thanks Regards Kais
-
Hi All, I have a button on my form. When the button is selected and TAB is hit, am not able to capture this event. How can I capture the tab event on a button? Its urgent, anykind of help is highly appreciated . Thanks in advance Regards Kais
-
Yes, I need to navigation on the screen thru TAB. Actually, Its MDI form and has two child windows displays side by side. On the first child window, when the focus is on the last control and the user hits TAB, the focus should go to the first control of the second child form. Thanks in advace for all your suggestion/help Regards, Kais
-
Yes, I need to navigation on the screen thru TAB. Actually, Its MDI form and has two child windows displays side by side. On the first child window, when the focus is on the last control and the user hits TAB, the focus should go to the first control of the second child form. Thanks in advace for all your suggestion/help Regards, Kais
-
Hello, I think it's best to watch lostfocus event of the last control. Then you can set Focus on the first Focus of the child Form. Hope that helps you! All the best, Martin
-
Hi, Thank you for your quick response. As you mention, the lost focus (Leave event for the button) will get fired for both key board and mouse movements. I explicitly need to capture Tab event generated on the button so that I can set the focus to some other control on the form. The reason is, Am using MDI form and displays two child windows side by side. On the first child window, when the focus is on the last control and the user clicks on TAB, the focus should go to the first control of second child window. Hope things are clear and you might be in able to help me out. Thanks Regards Kais
Hello If you are using .Net 2.0 framework, handle the PreviewKeyDown event
private void MyButton_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
if (e.KeyData == Keys.Tab)
MessageBox.Show("Tab");//Your code goes here!!
}I hope this helps:)
Regards:rose:
-
Hello If you are using .Net 2.0 framework, handle the PreviewKeyDown event
private void MyButton_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
if (e.KeyData == Keys.Tab)
MessageBox.Show("Tab");//Your code goes here!!
}I hope this helps:)
Regards:rose: