Skip to main content

Problem:

Using code how can you make a specific Tab page within a Tab control the current page.

Resolution:

You can use with the SelectedPage or SelectedIndex property of the TabControl object.

Some example code for this would be:-

          set tabControl1::"SelectedIndex" to 1  *> Its ZERO Indexed so 1 is actual Tab Page 2

       

       *> or

       

           set ls-tabpage to tabControl1::"TabPages"::"Item"("tabpage2")    

           set tabControl1::"SelectedTab" to ls-tabpage

Old KB# 3914