Just read the control. You can right click on the tab control and select Create Constant and use that as a comparison or since an enum also has a numeric value, compare the control to a U32. The value of the first page is 0, second page is 1, etc. You can also wire the tab control directly to a case statement