Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
QuestionDataset SQL executed statement Pin
052762543527-Oct-08 3:53
052762543527-Oct-08 3:53 
Questionhow to use SciLexer.dll Pin
asugix27-Oct-08 3:40
asugix27-Oct-08 3:40 
AnswerRe: how to use SciLexer.dll Pin
Ashfield27-Oct-08 5:15
Ashfield27-Oct-08 5:15 
AnswerRe: how to use SciLexer.dll Pin
led mike27-Oct-08 6:06
led mike27-Oct-08 6:06 
GeneralRe: how to use SciLexer.dll Pin
asugix27-Oct-08 18:10
asugix27-Oct-08 18:10 
QuestionModules in C# Pin
Vimalsoft(Pty) Ltd27-Oct-08 3:29
professionalVimalsoft(Pty) Ltd27-Oct-08 3:29 
AnswerRe: Modules in C# Pin
Eduard Keilholz27-Oct-08 3:59
Eduard Keilholz27-Oct-08 3:59 
AnswerRe: Modules in C# Pin
emiaj27-Oct-08 4:51
emiaj27-Oct-08 4:51 
AnswerRe: Modules in C# Pin
Michael Bookatz27-Oct-08 4:52
Michael Bookatz27-Oct-08 4:52 
GeneralRe: [Resolved]Modules in C# Pin
Vimalsoft(Pty) Ltd27-Oct-08 23:46
professionalVimalsoft(Pty) Ltd27-Oct-08 23:46 
QuestionConflciting in strong name assembly Pin
George_George27-Oct-08 2:55
George_George27-Oct-08 2:55 
AnswerAttempt to bump post. Pin
Pete O'Hanlon27-Oct-08 3:26
mvePete O'Hanlon27-Oct-08 3:26 
GeneralRe: Attempt to bump post. Pin
George_George27-Oct-08 3:35
George_George27-Oct-08 3:35 
AnswerRe: Conflciting in strong name assembly Pin
Mark Salsbery27-Oct-08 5:27
Mark Salsbery27-Oct-08 5:27 
GeneralRe: Conflciting in strong name assembly Pin
led mike27-Oct-08 5:54
led mike27-Oct-08 5:54 
GeneralRe: Conflciting in strong name assembly Pin
George_George30-Oct-08 3:33
George_George30-Oct-08 3:33 
GeneralRe: Conflciting in strong name assembly Pin
J4amieC27-Oct-08 6:22
J4amieC27-Oct-08 6:22 
GeneralRe: Conflciting in strong name assembly Pin
George_George30-Oct-08 3:33
George_George30-Oct-08 3:33 
GeneralRe: Conflciting in strong name assembly Pin
George_George30-Oct-08 3:32
George_George30-Oct-08 3:32 
GeneralRe: Conflciting in strong name assembly Pin
Mark Salsbery30-Oct-08 5:20
Mark Salsbery30-Oct-08 5:20 
GeneralRe: Conflciting in strong name assembly Pin
George_George31-Oct-08 1:08
George_George31-Oct-08 1:08 
QuestionSelect all Text in TextBox and Set cursor to Start Pin
StyleGuide27-Oct-08 0:08
StyleGuide27-Oct-08 0:08 
AnswerRe: Select all Text in TextBox and Set cursor to Start Pin
#realJSOP27-Oct-08 1:16
professional#realJSOP27-Oct-08 1:16 
GeneralRe: Select all Text in TextBox and Set cursor to Start Pin
StyleGuide27-Oct-08 1:35
StyleGuide27-Oct-08 1:35 
GeneralRe: Select all Text in TextBox and Set cursor to Start Pin
DaveyM6927-Oct-08 2:26
professionalDaveyM6927-Oct-08 2:26 
This is a wierd one - but so are many things with the text box - they really need to give us a new proper .net one instead of wrapping the native one.

Anyway - this is a 'dirty' solution but it works. Places the selection point at the end and Shift + Left Arrows for every character.
private void SelectAllReverse(TextBox control)
{
    if (control.TextLength > 0)
    {
        control.SelectionStart = control.TextLength;
        for (int i = 0; i < control.TextLength; i++)
        {
            SendKeys.Send("+{LEFT}");
        }
    }
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

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.