I am making an event to check if specific tab page in a tab control is active.
The point is, it will trigger an event if that tab page in a tab control is the currently selected tab. Any code that will give me what I need?
The Selection tab allows you to select which values should be included in the log. The window below corresponds to the following circuit. The tab is divided into three vertical areas. The first (leftmost) is a list of all components in the circuit whose values can be logged.
Assuming you are looking out in Winform, there is a SelectedIndexChanged
event for the tab
Now in it you could check for your specific tab and proceed with the logic
private void tab1_SelectedIndexChanged(object sender, EventArgs e) { if (tab1.SelectedTab == tab1.TabPages["tabname"])//your specific tabname { // your stuff } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With