Random Tab Index Problem

  • Thread starter Thread starter bwilcox
  • Start date Start date
B

bwilcox

In the following sub:

Private Sub TabCtl0_Change()
code for different tab pages
select specific page
combobox1.tabindex = 0
combobox2.tablindex = 1
"
combobox37.tabindex = 36
end select
end sub

However, when I click on the page tab, the index numbers
are random. The 0 is 37 or 33 or 2. Any ideas on what is
is wrong or how to fix?

bwilcox
 
bwilcox said:
In the following sub:

Private Sub TabCtl0_Change()
code for different tab pages
select specific page
combobox1.tabindex = 0
combobox2.tablindex = 1
"
combobox37.tabindex = 36
end select
end sub

However, when I click on the page tab, the index numbers
are random. The 0 is 37 or 33 or 2. Any ideas on what is
is wrong or how to fix?

Where are you running this code? Unless you had the form open in design mode
any changes like this would not be permanent.
 
Back
Top