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
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 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