471,354 Members | 1,181 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

How to programmatically click on the next tab page.

I've tried the following, and it sets the focus to the tab, but it doesn't
put the square box on the tab like it does when you use the mouse to click on
a tab. Therefore, when you press the right and left arrows, it doesn't go to
the next tab.

Here's what I was trying to emulate clicking on the 3rd tab.
this.tabProductCategories.SelectedIndex = 2;
this.tabProductCategories.TabPages[2].Focus();
this.tabProductCategories.TabPages[2].Select();

Jan 4 '06 #1
2 9294
Hi Vern,

this.tabProductCategories.SelectedIndex = 2;
this.tabProductCategories.TabPages[2].Parent.Focus(); // Select is also
OK

Hope this helps,
Thi

Jan 4 '06 #2
That worked!!

Thanks
Vern

"Truong Hong Thi" wrote:
Hi Vern,

this.tabProductCategories.SelectedIndex = 2;
this.tabProductCategories.TabPages[2].Parent.Focus(); // Select is also
OK

Hope this helps,
Thi

Jan 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Carlo Marchesoni | last post: by
5 posts views Thread by Verde | last post: by
8 posts views Thread by mark.norgate | last post: by
8 posts views Thread by =?Utf-8?B?UmljaA==?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.