Cant change page

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Why when I put in a tab control , whenever i click the
tabs (click event) it doesn't do anything?

Thanks
 
Bill said:
Why when I put in a tab control , whenever i click the
tabs (click event) it doesn't do anything?

Thanks


Because that's how it is!! Use the Change event instead - that fires
when you change from one tab page to another.

hth

Hugh
 
Ok, but the tab control has the on change event, not the
tabs themselves, how do i use the events to change
between 'tabs', thanks,
Bill
 
bill said:
Ok, but the tab control has the on change event, not the
tabs themselves, how do i use the events to change
between 'tabs', thanks,
Bill

The TabPage click event fires when you click on a blank area of the page that is
already "on top", not when you click on the tabs to change pages.

The TabControl's Change event does fire when you change tab pages. If what you
want to do is dependent on which tab page was changed to, then you need to test
the Value property of the TabControl. This will return the index of the Tab
Page that was selected.

Select Case Me!TabControlName.Value
Case 0
'page one of the TabControl was selected.
Case 1
'page two of the TabControl was selected.
etc..
 
nevermind, got it
gotta put tab control first :/
-----Original Message-----



Because that's how it is!! Use the Change event instead - that fires
when you change from one tab page to another.

hth

Hugh
.
 
How about that problem in reverse? Can you get a tab control to
change to a select page depending on information entered into a
textbox?
 
Back
Top