Click here to Skip to main content
15,887,349 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Select all of the text in a textbox Pin
Dave Kreskowiak15-May-07 6:01
mveDave Kreskowiak15-May-07 6:01 
GeneralRe: Select all of the text in a textbox [modified] Pin
TwoFaced15-May-07 5:53
TwoFaced15-May-07 5:53 
GeneralRe: Select all of the text in a textbox Pin
Dave Kreskowiak15-May-07 6:08
mveDave Kreskowiak15-May-07 6:08 
GeneralRe: Select all of the text in a textbox Pin
TwoFaced15-May-07 6:28
TwoFaced15-May-07 6:28 
GeneralRe: Select all of the text in a textbox Pin
Dave Kreskowiak15-May-07 6:30
mveDave Kreskowiak15-May-07 6:30 
GeneralRe: Select all of the text in a textbox - Windows app Pin
Marcus J. Smith15-May-07 6:15
professionalMarcus J. Smith15-May-07 6:15 
GeneralRe: Select all of the text in a textbox [modified] Pin
Dave Kreskowiak15-May-07 6:20
mveDave Kreskowiak15-May-07 6:20 
GeneralRe: Select all of the text in a textbox Pin
TwoFaced15-May-07 6:38
TwoFaced15-May-07 6:38 
I didn't say put the UI thread to sleep. I suggested calling a procedure asyncronosly. This procedure would work on a seperate thread. To be clear this is what I had in mind.

1) The focus event fires
2) In that event we call another procedure asyncronosly
-This allows the normal cursor placement to finish
3) The procedure we called fires and highlights everything in the textbox

Putting the [i]secondary[/i] thread to sleep for a split second was just a precaution to make sure the select all fired late enough. I know your far more knowledable then I and I may be missing the problems this method creates. Even if they would be rare. But thats how I did it and the method seemed to work. I suggested a timer as a secondary option to pull off the delay. In this case putting the thread to sleep obviosly wouldn't be needed and certainly not desired. It was just an alternative thought, not really what I was suggesting.

As you've already made clear it probably is best to create a custom control.
GeneralRe: Select all of the text in a textbox Pin
Dave Kreskowiak15-May-07 6:55
mveDave Kreskowiak15-May-07 6:55 
AnswerRe: Select all of the text in a textbox [modified] Pin
Xandip15-May-07 19:16
Xandip15-May-07 19:16 
QuestionDelegates are type-safe Function Pointers Pin
Sonia Gupta15-May-07 2:34
Sonia Gupta15-May-07 2:34 
AnswerRe: Delegates are type-safe Function Pointers Pin
Colin Angus Mackay15-May-07 2:37
Colin Angus Mackay15-May-07 2:37 
Questiondelegates Pin
Sonia Gupta15-May-07 2:28
Sonia Gupta15-May-07 2:28 
AnswerRe: delegates Pin
Colin Angus Mackay15-May-07 2:35
Colin Angus Mackay15-May-07 2:35 
QuestionRe: delegates Pin
Sonia Gupta15-May-07 2:48
Sonia Gupta15-May-07 2:48 
AnswerRe: delegates Pin
Guffa15-May-07 3:50
Guffa15-May-07 3:50 
AnswerRe: delegates Pin
Colin Angus Mackay15-May-07 3:51
Colin Angus Mackay15-May-07 3:51 
QuestionRaising and handling events in 2 independant forms. Pin
steve_rm15-May-07 1:51
steve_rm15-May-07 1:51 
AnswerRe: Raising and handling events in 2 independant forms. Pin
Probeer Das15-May-07 3:32
Probeer Das15-May-07 3:32 
AnswerRe: Raising and handling events in 2 independant forms. Pin
Dave Kreskowiak15-May-07 4:06
mveDave Kreskowiak15-May-07 4:06 
Questionhow to resolve it Pin
d_smit15-May-07 1:18
d_smit15-May-07 1:18 
QuestionRe: how to resolve it [modified] Pin
Sonia Gupta15-May-07 1:23
Sonia Gupta15-May-07 1:23 
QuestionRun in Services Pin
Socheat.Net15-May-07 1:14
Socheat.Net15-May-07 1:14 
AnswerRe: Run in Services Pin
harsh_c15-May-07 1:27
professionalharsh_c15-May-07 1:27 
GeneralRe: Run in Services Pin
Socheat.Net15-May-07 15:43
Socheat.Net15-May-07 15:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.