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

make textbox active on showdialog

is there a way to have the keyboard cursor active in a textbox on
showdialog?

Thanks

Feb 16 '07 #1
2 2485
According to a post about 4" up the list in my OE,

myTextBox.Select() will bring the textbox into focus.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"wanwan" <er*******@yahoo.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
is there a way to have the keyboard cursor active in a textbox on
showdialog?

Thanks

Feb 16 '07 #2
wanwan wrote:
is there a way to have the keyboard cursor active in a textbox on
showdialog?
Set its TabIndex to 0.

As the first control in the Tab Order, it will automatically get focus
when the dialog is shown.

HTH,
Phill W.
Feb 16 '07 #3

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

Similar topics

2
by: Valera Simonov | last post by:
there are some asp:textbox on page which is have to be printed. printed page looks good until text in the textbox exceeds size of it - in this case only a part of text printed. can i somehow make...
3
by: James Radke | last post by:
Hello, How can I make the text of a windows textbox read vertically (i.e. rotated 90 degrees) from bottom to top instead of horizontally? Any samples or ideas would be appreciated! Thanks!...
1
by: rockdale | last post by:
Hi, All I have an datagrid with alternating color, I also want the back-color of my textbox in ItemTemplate also appears alternating, how could I do that? <asp:datagrid id="dgridEmpHours"...
1
by: leiger | last post by:
Hi, I need help with this problem as soon as possible (within a couple of days). This is the first time I have ever used Access 2007 and therefore I am having some problems - especially as I...
1
by: lyealain | last post by:
how can i hide a textbox.. only when click the textbox appear.. thanks
2
by: billa856 | last post by:
Hi, My project is in MS Access. In which I have one Form(DatEntry) which I am using for data entry in table(PRODUCTION). In this Form I have some Textboxes and Comboboxes....
4
by: manishamca | last post by:
how to make the textbox uneditable when we click a button. I want to make the textbox uneditable when we click a button.plz help me. thanks in advance.
4
satiss7pwr
by: satiss7pwr | last post by:
i want to make a application attractive. Give me some code related wich help me
10
by: popeyb | last post by:
I'm a beginner in visualbasic.net I've 50 textbox from 1 to 50 and my question is how can get a value o show a value in a specific textbox? for example the user enter a number to a text box and I...
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: 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
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
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
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...

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.