April 7th, 2012, 05:50 AM
C# Tabs and events
I have application in which I use tabs as mean of menus.
Main tabcontrol with tabs, and in those tabs there is another tabcontrol with its tabs.
Let's say I have tab "Inactive" and inside tabcontrol with Tabs "Employees" and "Companies"
When I go "employees", i wanna show inactive employees so I created TabPage_Enter event that shows them.
Problem is that when I first go to "Inactive" tabpage, it does not show them. I have to click somewhere in "Employees" tab area to make it happen. Do you understand me? "Employee" tabpage is visible, but event on Enter is not executed.
I have no idea how to make it. Maybe I should use another event? I went and see events, but I dont know if there is better one...