Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnClick event of tabcontrol does not work 1

Status
Not open for further replies.

andzejek

MIS
Sep 1, 2007
154
US
I'm creating a new form, setting up TabControl with two tabs(page6 and page7) and trying to run some code (for now msgbox only) when user click on the tab(page7). Now, when I'm clicking on the tab nothing happens, the only place witch is popping up messagebox is very small area(I found it accidentally) in the middle, just above the tab(on the edge). Is there something I should do to extend this area or something else is wrong?

Andrew
 
use the change event and the tab controls value. The value of the tab control is the page number - 1

select case me.myTabCntrl.value
case 0
do something for first page
case 1
do something for second page
etc
end select
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top