Making Tab page visibility True/False selectively

Discussion in 'Questions (Windows Mobile)' started by Wietze, Sep 29, 2008.

  1. Wietze

    Wietze New Member

    In app_start I declared a tab control having four tab pages, I use four check boxes as visibility option for these tab pages.

    Is it possible to make tab page visibility True/False by checking/unchecking the check boxes accordingly?
  2. RandomCoder

    RandomCoder Well-Known Member Licensed User

    From what I can see, the Tabcontrol doesn't have this functionality :sign0013:
    However, I've had a little play and think that it can be achieved programatically. You need to keep track of the tab pages using an array list and then add and remove as required.
    Attached is a little example that I have knocked up for you, it requires the ControlsEx library.
    The tab pages are not kept in the original order but this could probably be achieved by disposing of the tab control and then recreating it each time with the desired pages present.


    Attached Files:

  3. Wietze

    Wietze New Member

    Thanks RandomCoder, your solution works fine
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice