Prevent User From Selecting Another Tab Page

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
 
J

Jonathan Parminter

-----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
 
J

Jonathan Parminter

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top