473,386 Members | 1,679 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,386 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 6805
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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,...

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.