473,418 Members | 2,019 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,418 software developers and data experts.

selecting/showing automatically a tabpage ???? Mytabcontrol.tabpages[0].select ????

Hi,
I have a tab control with several pages. How can I select pages
programmatically ???

I ran :

....................
Mytabcontrol.tabpages[0].select () or
Mytabcontrol.tabpages[0].show()
....................

but no page is changed.

Any idea ????

Nov 16 '05 #1
4 6806
Hi Genc Ymeri

Use

tabControl1.SelectedTab = tabPage2;
On Thu, 30 Sep 2004 14:01:17 -0400, genc ymeri <ge********@hotmail.com> wrote:
Hi,
I have a tab control with several pages. How can I select pages
programmatically ???

I ran :

...................
Mytabcontrol.tabpages[0].select () or
Mytabcontrol.tabpages[0].show()
...................

but no page is changed.

Any idea ????


--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
>>> tabControl1.SelectedTab = tabPage2;

ha, ha, ha,

Thanks a lot. :)


"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opse5js4u4klbvpo@stone...
Hi Genc Ymeri

Use

tabControl1.SelectedTab = tabPage2;
On Thu, 30 Sep 2004 14:01:17 -0400, genc ymeri <ge********@hotmail.com> wrote:
Hi,
I have a tab control with several pages. How can I select pages
programmatically ???

I ran :

...................
Mytabcontrol.tabpages[0].select () or
Mytabcontrol.tabpages[0].show()
...................

but no page is changed.

Any idea ????


--
Happy coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #3
How about:

Mytabcontrol.SelectedIndex = 1;

Nov 16 '05 #4
that's even better :) :)

I was looking for it but since it didn't show up after "selected..." wrongly
I assumed it doesn't have it

Thanks to all :)
"martin_nv" <ma********@yahoo-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com...
How about:

Mytabcontrol.SelectedIndex = 1;

Nov 16 '05 #5

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

Similar topics

9
by: Robb Gilmore | last post by:
Hello, This is probably an easy one, but I have not been able to figure it out so far. I have a tab control on a windows forms app. Depending on some business logic, I need to hide/show some...
2
by: JG | last post by:
Hi, I have a windows form with a TabControl on it. It has 3 tabpages on it. I have also coded a button that is supposed to 'add' a new tabpage. The code in that clicked event looks like this:...
4
by: Sumit | last post by:
Hi all, I am working on an application in which there is a form which has a tabcontrol containing 4 tab pages. Let the name of the tabpages be A,B,C&D. The default view is that there are all...
6
by: Tee | last post by:
Hi, I have a tabcontrol that has a tabpage, I want to add another tabpage on runtime, but I want the tabpage to be added to the 1st tab, anyone know how to do it? Thanks, Tee
4
by: Tom | last post by:
I have a form with a tabControl with 6 tabPages. There are textBoxes on all the tabPages that are bound to a dataset. The user can click a modify button, edit whatever textBoxes they want and then...
4
by: Ratan | last post by:
I have a form that has a tabcontrol with 5 tabpages. i want to rename the tabpages in runtime. Actually i want to right click the tabpage i want to rename and edit the text there itself. How to...
0
by: Marc Solé | last post by:
Hi to everybody, I would like o clone a tabPage into the same tabControl with all the controls of the first tabPage. I have tried doing like this, but that way doesn't clone the controls. That...
2
by: Rex the Strange | last post by:
I suspect the answer to this question is "you can't," but here goes anyway: I have a tabcontrol which contains, of course, various tabpages (added programmatically at runtime, but this is...
6
by: ray well | last post by:
i want a user to be able to change tab pages thru the keyboard, i tried entering the TabPage.text as '&1 Names', "&2 Addresses', etc., so that the user can change pages by type ALT 1, ALT 2, on the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.