TabControl Probelm

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cfyam

    #1

    TabControl Probelm

    How can I to disable some tabpages in TabControl, then user cann't select
    these pages?


  • Alien

    #2
    Re: TabControl Probelm

    alter the SelectedIndex property of TabControl.

    "cnu" <srikadiyala@ho tmail.com> wrote in message
    news:0d4a01c351 a3$631908d0$a10 1280a@phx.gbl.. .[color=blue]
    > i have an issue that is also related to the tabcontrol.
    > have a form that has a tabcontrol. This tabcontrol has 4
    > tab pages. I have a Save button in the form. Now I enter
    > data for the controls in each tab page and finally I click
    > Save. Before saving I validate the data in some of the
    > controls. Now, if I am in 4th tabpage and hit Save. If
    > there is an invalid value in a control of the first
    > tabpage, I want to focus on that control and make it
    > active. But it is not really happening. I have tried,
    > tabpage.activec ontrol = firsttabpage; and
    > firsttabpage.fo cus();
    >
    > Is there any way to do this?[/color]


    Comment

    Working...