Is there something similar to the form event "Load" for a Tab Page?

Posted on 2004-11-17
Last Modified: 2010-04-23
Hi all,
I know that for a form there is a event called "Load". What I am looking for is an event like "Load" except for a Tab Page. I have some code that needs to run when the tab page is selected.

Thanks, MT
Question by:MajikTara
    1 Comment
    LVL 28

    Accepted Solution

    You can try TabControl.SelectedTab

    something like

    If TabControl.SelectedTab = [name of tab page] then
      'run your code

    or you can try click event

    The tabcontrol's click event is fired and you can get the name of the tabpage like this:

    CType(sender, TabControl).SelectedTab.Name
    or your other code

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now