Solved

i have a textbox i do NOT want to have focus how do i do this with vb.net

Posted on 2004-10-18
7
290 Views
Last Modified: 2010-04-23
i have a textbox that gets highlighted when the windows form is loaded how do i have it NOT highlighted nor focus at all.

thx
Johnny
aka Pern
0
Comment
Question by:Johnny
  • 3
  • 2
  • 2
7 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12341527
You could force the focus to a different control.

Bob
0
 
LVL 27

Expert Comment

by:planocz
ID: 12341530
In your properties box of the textbox change TabStop = false.
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 100 total points
ID: 12341543
That will only keep the text box from being part of the tab sequence, but not if clicked on with the mouse.

Bob
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 27

Accepted Solution

by:
planocz earned 400 total points
ID: 12341558
This is true. but he wanted to bypass it on the form Load.
But he could change the tab order so that it ends up being tabed last.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12341581
Aaah, yes, good point, at startup it is based on the tab order of the controls, so you could set the tab order correctly, so that the text box is not Tab Index 0.

Bob
0
 

Author Comment

by:Johnny
ID: 12342520
i have a few textboxes on the form i do not want any of them focused...i have no other controls on the fiorm.

is there a way to make it so the form has focus. and no controls???

thx
0
 

Author Comment

by:Johnny
ID: 12342594
i figured it out from what you all said..

i just made all the tab stops false and then made the last textbox tab index one number off last was 4 i made it 6 so it had a missing 5 for a tab stop and left that as focus..and it folled it into thinking it had a focus...

non of the textboxes have focus.

thx
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now