Connecting Tech Pros Worldwide Forums | Help | Site Map

tabControl

Wndr
Guest
 
Posts: n/a
#1: Nov 21 '08
Hi.
I have a tab control with 3 tabs. The first tab has a button.
Is there anyway when I press this button the third tab will be selected, I
tried tabControl_Click event to call from the Button_click event, but it
did't work.
Thanks in advance.




Peter Duniho
Guest
 
Posts: n/a
#2: Nov 21 '08

re: tabControl


On Fri, 21 Nov 2008 08:20:14 -0800, Wndr <someone@yahoo.comwrote:
Quote:
Hi.
I have a tab control with 3 tabs. The first tab has a button.
Is there anyway when I press this button the third tab will be selected,
I
tried tabControl_Click event to call from the Button_click event, but it
did't work.
http://msdn.microsoft.com/en-us/libr...abcontrol.aspx
Jeff Johnson
Guest
 
Posts: n/a
#3: Nov 21 '08

re: tabControl


"Wndr" <someone@yahoo.comwrote in message
news:uGQEKU$SJHA.5192@TK2MSFTNGP05.phx.gbl...
Quote:
I have a tab control with 3 tabs. The first tab has a button.
Is there anyway when I press this button the third tab will be selected, I
tried tabControl_Click event to call from the Button_click event, but it
did't work.
Try setting the SelectedTab property.

Learn what event handlers are for. tabControl_Click is called IN RESPONSE TO
a tab being clicked. It does not CAUSE the click.


Wndr
Guest
 
Posts: n/a
#4: Nov 21 '08

re: tabControl


Thank you Jeff, Peter.
It was very helpfull.

"Peter Duniho" <NpOeStPeAdM@nnowslpianmk.comwrote in message
news:op.ukzgd4nx8jd0ej@petes-computer.local...
Quote:
On Fri, 21 Nov 2008 08:20:14 -0800, Wndr <someone@yahoo.comwrote:
>
Quote:
>Hi.
>I have a tab control with 3 tabs. The first tab has a button.
>Is there anyway when I press this button the third tab will be selected,
>I
>tried tabControl_Click event to call from the Button_click event, but it
>did't work.
>
http://msdn.microsoft.com/en-us/libr...abcontrol.aspx

Closed Thread