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

Selecting a Control

Cutch1
4
I got a quick question.

Basicly after pressing a button i want to select a textbox so i can type in it, without clicking to mouse on the textbox.

Is it possible to select the textbox through a code like:

NOT REAL CODE:
Me.Textbox1.select()
or
Me.tabindex = Textbox1.tabindex

or is their some other code to do it.

Please help me out

Cutch1
Jun 28 '07 #1
3 922
Killer42
8,435 Expert 8TB
Yes. The SetFocus method is what you're looking for.
Jun 28 '07 #2
Cutch1
4
Thanks a bunch, i don't no how i missed that, i looked through everything.

Cutch1
Jun 29 '07 #3
Killer42
8,435 Expert 8TB
Thanks a bunch, i don't no how i missed that, i looked through everything.
I wouldn't be too concerned. As with most of this stuff, it seems obvious once you know the right terminology. But can be very obscure until then. If you had been thinking about "focus" you probably would have found it easily.
Jun 29 '07 #4

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

Similar topics

9
by: Ant | last post by:
Hi, I'm new to .NET, though program with VB. I'm used to selecting an event from the right side drop down box of the VB IDE. That seems to have changed with ..NET. How do you choose an event, say...
1
by: Dave | last post by:
Hello. I have DeropDownList control on my page and want to select some value by SelectedValue, but before selecting I want to ensure that the value exists in DeropDownList control's items. How...
0
by: Steven W | last post by:
I'm trying to setup a datagrid in a custom control where I can select the row with the Select column hidden and have it call the "SelectIndexChanged" event. In the "SelectIndexChanged" I just want...
1
by: Bob Loveshade | last post by:
I am looking for an example that shows how to select and highlight multiple rows in a DataGrid. My DataGrid is part of a Web User Control which is contained in an ASPX page. I haven't been...
2
by: areef.islam | last post by:
Hi, I am kinda new to javascript and I am having this problem with selecting multiple options from a select tag. Hope someone can help me out here. here is my code...
1
by: m_hansford | last post by:
I have a Menu control that populates from a SiteMap file. It's on my Master Page and usually loads content pages. I've got 2 problems at the moment: - Some of my menu items point to an...
2
by: Bob | last post by:
How do I show a calendar control or another appropriate control to pick a date and time for a cell in a column in a datagridview? Thanks for any help. Bob
1
by: Nathan Sokalski | last post by:
I have an ASP.NET 2.0 webform which includes both a FileUpload contol and a Calendar control. When the user selects a new data with the Calendar control, the FileUpload control is reset (there is...
2
by: Abubakar | last post by:
Hi, In a normal Windows.Forms.TextBox control, I want to be able to select a text (ie highlight, this is by default possible) and than be able to drag that text through my mouse pointer to another...
3
by: Stephen.Schoenberger | last post by:
I have a windows form that has a panel on it. At runtime a custom control is added multiple times to this panel. (anywhere from 1-50 of them are added). I am trying to figure out how I can "select"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.