| Home | Previous Lesson: Creating Tab Pages Dynamically Next Lesson: Programming ListView Control |
If you understood previous topics pretty well this topic is easy. Let us create a standard visual user object of type tab. Invoke user object painter, select New, and select Standard from the Visual category. Now, select Tab from the popup window. Save this as 'uo_tab'.
Create a new window 'w_tab_demo5' and place the user object you created in the previous step on the window. Copy and paste the code you wrote for the window open event from the previous topic. Similarly do for the tab control's SelectionChanged event also.
What we are doing here is exactly same as what we did in the previous topic i.e. opening tab pages dynamically. One thing you need to observe is, when you are using tab control user object, you can insert neither regular tab pages nor the user object tab pages at design time. You have to do it at run-time only.
| Home | Previous Lesson: Creating Tab Pages Dynamically Next Lesson: Programming ListView Control |