Prevent User From Selecting Another Tab Page

  • Thread starter Thread starter Marco
  • Start date Start date
M

Marco

I have a form that has 1 tab control and 4 pages on the
tab control. I need to prevent the user from moving from
Page 1 (index 0) to page 2 (index 1) on the same tab
control. Is there anyway to trap when the user tries to
select another page and keep him on Page 1(index 0)

Thanks,

Marco Calzadilla
 
-----Original Message-----
I have a form that has 1 tab control and 4 pages on the
tab control. I need to prevent the user from moving from
Page 1 (index 0) to page 2 (index 1) on the same tab
control. Is there anyway to trap when the user tries to
select another page and keep him on Page 1(index 0)

Thanks,

Marco Calzadilla
.
Hi Marco,
use the tab_OnChange() event to test if tab.Value > 0 then
has changed to another tab.

Luck
Jonathan
 
Ooops,

forgot to add that you set the visible tab page using the
page number. for example to make the second page visible

' page numbering starts from 0
tab.value= 1

to prevent moving from the first page set tab.value=0

Luck
Jonathan
 
Back
Top