Part IV - Modify the WebTabControl Aesthetics

In this part, we'll modify the default behavior of the web tab control, as well as add some color.

Contents

Step 1 - Set the Default Tab

Step 2 - Change the Tabcontrol Background Color|Tutorial2_Part4#Step2]

Step 1 - Set the Default Tab

In order to set the default tab, we just need to add code to the CreateWebTabControl() function in the Support_WebTabControl module at the end of the With WebTC...End With marshalling code block:
        'selct the active page's tab web button
        SelectButton .PageTabs(Tab_Control.Value + 1)

Now when the WebTabControl starts, the first tab (or the tab for the active page) will always be selected.

Top

Last edited Mar 6, 2011 at 1:04 PM by vba_junkie, version 2

Comments

No comments yet.