C# how to trigg a key event in a tabcontrol specific tab? -


I have a tab in my tab with three tabp pages named TabPage1, TabPage2 and TabPage3.

When tab page 2 requires me to raise an important event (arrow keys for navigation). This event should not be raised in the other tab page.

How do anyone know?

On the selected event handler, you can enter the sender for proper control and check its name. If event is generated from the tab page 2, then you can set the key event to fire.

Something like

  Private Zero TabPage_Selected (Object Sender, EventArgs e) {TabPage source = sender as TabPage; If (source.Name.equals ("TabPage2") / do ... whatever ...}  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -