c# - Initialization of tabs in tabControl -


I am using tab control with multiple tabs (& gt; 10), and each tab has UserContol but Tabs start each app when I start my app. This is slowing down my program. I want to run my user control only when I click on it How do I do this?

You should improve your user control that they do not display content as long as you get active / visible Give them a way to activate , when the tab has a tabront call when the selected tab is created.

Alternatively, you can not add user control to the tab page content in the designer. Instead of activating tabs, create your UserTrint instead But this will make them invisible in the designer.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -