By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

tabControl

P: n/a
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.

Nov 21 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Fri, 21 Nov 2008 08:20:14 -0800, Wndr <so*****@yahoo.comwrote:
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
Nov 21 '08 #2

P: n/a
"Wndr" <so*****@yahoo.comwrote in message
news:uG**************@TK2MSFTNGP05.phx.gbl...
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.
Nov 21 '08 #3

P: n/a
Thank you Jeff, Peter.
It was very helpfull.

"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On Fri, 21 Nov 2008 08:20:14 -0800, Wndr <so*****@yahoo.comwrote:
>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

Nov 21 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.