473,789 Members | 2,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tabcontrol-bringing tabpage to front programatically

Don
how do i bring tabpages, which are part of a tabcontrol, to the front on the tabcontrol programmaticall y. 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 8845
Hi Don,
how do i bring tabpages, which are part of a tabcontrol, to the front on

the tabcontrol programmaticall y. 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 programmaticall y. 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*******@disc ussions.microso ft.com> a écrit dans le message de
news:54******** *************** ***********@mic rosoft.com...
how do i bring tabpages, which are part of a tabcontrol, to the front on

the tabcontrol programmaticall y. 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*******@disc ussions.microso ft.com> a écrit dans le message de
news:54******** *************** ***********@mic rosoft.com...
how do i bring tabpages, which are part of a tabcontrol, to the front on

the tabcontrol programmaticall y. 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.Sel ectedTab = tabpageName

You can also use

TabControl1.Sel ectedIndex = 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.Sel ectedTab = tabpageName

You can also use

TabControl1.Sel ectedIndex = 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
2001
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 = TabDrawMode.OwnerDrawFixed; protected override void OnDrawItem(DrawItemEventArgs e) {
2
2348
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: http://netron.sourceforge.net/Biotron3Shot.jpg You can move tab pages in the different panes, unless it's totally empty (TabCount=0). Is there an alternative? Thanks a lot,
8
15675
by: Aaron Ackerman | last post by:
If I am expanding (maximizing a form how do I maximize the tab control along with it?
2
2371
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 controls on it. The problem is that I don't know how to bring up the graphical design interface for the TabControl. I suppose I COULD just design it as a UserControl and place a TabControl on it, but that seems a bit... inelegant (I'm going to...
8
2929
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 comboboxes cannot be selected by clicking on it. If I click on this combobox, the tabcontrol itself is selected. I can select the combobox by choosing it from the list of controls in the Properties window or by dragging a rectangle around it. ...
2
3440
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 navigation is not provided. Or am I just missing it...?
1
3459
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 know how to fix this? I tried this on two computers, at work and at home, both with Windows XP with latest service packs, and Framework 2.0 and 3.0 with latest SP.
0
1421
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 to the vast amount of data to populate listviews within the tabs, I have created a worker thread (an implementation of a BackgroundWorker) to form the data and populate a tabcontrol 'offline', so that it doesn't interfer with (i.e freeze) the UI. ...
2
2120
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 (who's done a little work with this for his multi-colored listbox class), or someone else might've figured this out. Here's the scenario: DBs created on Windows XP using A2K7 are apparently incapable of displaying TabControl transparency....
2
6275
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 the tabcontrol (so that the user won't be able to change the values in the textboxes, combobox, checkbox) without the tabcontrol turn into grey.
0
9665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6768
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.