473,387 Members | 1,501 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,387 software developers and data experts.

In Tabs Control by default it show focus on the First Tab but..

Hi

In Tabs Control by default it show focus on the First Tab but I want to make Default
tab to load is third tab to show Focus on the Form Load


Please help me...


Cheers
Mahesh
Mar 20 '07 #1
2 2323
channaJ
67
Hi

In Tabs Control by default it show focus on the First Tab but I want to make Default
tab to load is third tab to show Focus on the Form Load


Please help me...


Cheers
Mahesh
Hi Mahesh,

You can use SelectedTab property of the TabControl to do this. Say your TabControl is tabControl1 and your third TabPage is tabPage3. The you can add the following code to the load event of your page.

tabControl1.SelectedTab = tabPage3;
Mar 20 '07 #2
Hi Mahesh,

You can use SelectedTab property of the TabControl to do this. Say your TabControl is tabControl1 and your third TabPage is tabPage3. The you can add the following code to the load event of your page.

tabControl1.SelectedTab = tabPage3;
Hi


Thanks Lot
Its Working properly


Cheers
Mahesh
Mar 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Yoshitha | last post by:
Hi, I want help regarding providing information about form and controls which are presented on the form. when ever user presses f1 if the form has focus then it has to provide information about...
3
by: tnhoe | last post by:
Hi, I would like to set focus to a field in a form inside a tab page. It is a multiple tabs under different divisions (eg: sc1,sc2,sc3,etc) <div name='sc1'> <form name='form1'> <input...
11
by: Steve B. | last post by:
How can I keep the ComboBox textbox empty of datasource items when my local application starts AND keep them empty even after the user clicks different Tabs on the form. I welcome any questions....
3
by: Marty McFly | last post by:
Hello, I have a control class that inherits from System.Web.UI.WebControls.Button. When I drag this control from the "My User Controls" tab in the toolbox onto the form, I want it to reflect the...
0
by: LCAdeveloper | last post by:
Another newbie question I'm afraid. When I use the .Focus() or .Select() methods to set the initial control that has focus on a form, try as I might I cannot get the control to visually indicate...
4
by: Bob Alston | last post by:
Anyone have any code handy for handling logical paging when using tabs to handle a multiple page form? What I have read, you can make each tab one of the pages, hide all but the active tab and...
10
by: Tom | last post by:
I'd like to create a new VB 2005 app that looks like the VS 2005 IDE - in other words, an app that has multiple forms, but instead of displaying them seperately or in an MDI main from, I'd rather...
3
ADezii
by: ADezii | last post by:
One frequently asked question at TheScripts is how to set focus/make active a specific Tab on a Tab Control other than clicking on it. Before I provide the answer, I feel as though a little summary...
4
ADezii
by: ADezii | last post by:
One frequently asked question at TheScripts is how to set focus/make active a specific Tab on a Tab Control other than clicking on it. Before I provide the answer, I feel as though a little summary...
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: 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...
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
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...
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...

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.