Cant change page

B

Bill

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

Thanks
 
H

Hugh O'Neill

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
 
B

bill

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
 
R

Rick Brandt

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..
 
B

bill

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
.
 
W

Wendi S.

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?
 

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