473,385 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

tabcontrol-bringing tabpage to front programatically

Don
how do i bring tabpages, which are part of a tabcontrol, to the front on the tabcontrol programmatically. I would like to bring specific tabpages to the front depending on user actions with the user clicking on the tab. thanks.
Jul 21 '05 #1
6 8810
Hi Don,
how do i bring tabpages, which are part of a tabcontrol, to the front on

the tabcontrol programmatically. I would like to bring specific tabpages to
the front depending on user actions with the user clicking on the tab.
thanks.

I try to understand it, however impissible.

This I thought you wrote: you would bring a specific tabpage to front from
which the user has clicked on the tab.

Does it that not automaticly?

Cor
Jul 21 '05 #2
Hi Don,
how do i bring tabpages, which are part of a tabcontrol, to the front on

the tabcontrol programmatically. I would like to bring specific tabpages to
the front depending on user actions with the user clicking on the tab.
thanks.

I try to understand it, however impissible.

This I thought you wrote: you would bring a specific tabpage to front from
which the user has clicked on the tab.

Does it that not automaticly?

Cor
Jul 21 '05 #3

"Don" <an*******@discussions.microsoft.com> a écrit dans le message de
news:54**********************************@microsof t.com...
how do i bring tabpages, which are part of a tabcontrol, to the front on

the tabcontrol programmatically. I would like to bring specific tabpages to
the front depending on user actions with the user clicking on the tab.
thanks.

If the guy clic on the good tab, it will goes front.
But, if you want to specify a Tab, use this :

TabControl c; // your TabControl
TabPage p; //the one you want

c.SelectedPage = p;

You can also do :
c.SelectedPage = c.TabPages[goodnumber];

goodnumber is an int :o)

HTH
Jul 21 '05 #4

"Don" <an*******@discussions.microsoft.com> a écrit dans le message de
news:54**********************************@microsof t.com...
how do i bring tabpages, which are part of a tabcontrol, to the front on

the tabcontrol programmatically. I would like to bring specific tabpages to
the front depending on user actions with the user clicking on the tab.
thanks.

If the guy clic on the good tab, it will goes front.
But, if you want to specify a Tab, use this :

TabControl c; // your TabControl
TabPage p; //the one you want

c.SelectedPage = p;

You can also do :
c.SelectedPage = c.TabPages[goodnumber];

goodnumber is an int :o)

HTH
Jul 21 '05 #5
Hi Don,

Than it is just
TabControl1.SelectedTab = tabpageName

You can also use

TabControl1.SelectedIndex = 3

However because of that anoying behaviour of the tabs on a tabpage I would
not use that last one.

I hope this helps?

Cor
Jul 21 '05 #6
Hi Don,

Than it is just
TabControl1.SelectedTab = tabpageName

You can also use

TabControl1.SelectedIndex = 3

However because of that anoying behaviour of the tabs on a tabpage I would
not use that last one.

I hope this helps?

Cor
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paiam Salavati | last post by:
I want to change the the color of the tabs and the color of TabControl itself in a TabControl. Therefore I wrote the following code in my customized TabControl-class: this.DrawMode =...
2
by: Francois Vanderseypen | last post by:
Can someone tell me why you cannot drag something onto a tabcontrol with zero tabpages? I have a kind of 'docking' interface and relies heavily on GDI+, a screenshot is available here: ...
8
by: Aaron Ackerman | last post by:
If I am expanding (maximizing a form how do I maximize the tab control along with it?
2
by: Patrick McGuire | last post by:
I want to place a tabControl with almost identical properties on several forms. I think the best way is to define a UserControl that inherits System.Windows.Forms.TabControl, and place all my...
8
by: Gregory A Greenman | last post by:
I have a minor, but somewhat frustrating, problem. In a program I'm working on, I've got a tabcontrol that contains several other controls, a few of which are comboboxes. In the IDE, one of the...
2
by: michael sorens | last post by:
After extensive searching of the docs, I find no mention of support for Ctrl-Tab and Ctrl-Shift-Tab to navigate among tabs in a TabControl. I am surprised that such a common/standard keyboard...
1
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two tabpages. When I set tab control's Alignment property to Right, tab texts (captions) disappear. Does anybody...
0
by: bertie78 | last post by:
Hi all, New poster here! I'm having some difficulty updating a tabcontrol cross-threads. The general idea is : the main thread is the owner of the tab control and the form controls. However, due...
2
by: Jamey | last post by:
Ran into an inconvenience with TabControls yesterday. I found a partial explanation from Allen Browne on the MS message boards explaining when it happens, but not why. I thought Stephen Lebans...
2
by: Claudia Fong | last post by:
Hi, I added a tabcontrol in a panel in my form. My tabcontrol have more than 3 pages.. each page contains textboxes, combobox, checkbox. I want to disable the items of each of the page of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.