tab control page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there, is it possible to change the button on click event depending what
tab control page is selected. I am trying to make my own buttons on the main
form that change depending on what page you are on. I know it would be easier
to have different forms and therefore have different buttons but I thought
this might be better.....in effect, have a personalised toolbar. I have tried
an if me.tabctrl0.visible = tru then msgbox "page0 is focused" etc but that
does nothing.
 
Richard said:
Hi there, is it possible to change the button on click event
depending what tab control page is selected. I am trying to make my
own buttons on the main form that change depending on what page you
are on. I know it would be easier to have different forms and
therefore have different buttons but I thought this might be
better.....in effect, have a personalised toolbar. I have tried an if
me.tabctrl0.visible = tru then msgbox "page0 is focused" etc but that
does nothing.

In your Button's code...

Select Case Me.TabControlName.Value
Case 0
'do page one stuff
Case 1
'do page two stuff
etc..
End Select
 
Back
Top