Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: CD Burning in VISTA [modified] Pin
User 21559730-Sep-09 0:57
User 21559730-Sep-09 0:57 
QuestionCrystal report color Pin
antala30-Sep-09 0:27
antala30-Sep-09 0:27 
AnswerRe: Crystal report color Pin
Christian Graus30-Sep-09 0:42
protectorChristian Graus30-Sep-09 0:42 
QuestionFind MIN value in binding? Pin
kanchoette30-Sep-09 0:02
kanchoette30-Sep-09 0:02 
QuestionThe type of a linq request Pin
teycir29-Sep-09 23:50
teycir29-Sep-09 23:50 
QuestionGo to line ! Pin
amir-haghighi29-Sep-09 23:27
amir-haghighi29-Sep-09 23:27 
AnswerRe: Go to line ! Pin
Christian Graus30-Sep-09 0:37
protectorChristian Graus30-Sep-09 0:37 
AnswerRe: Go to line ! Pin
Henry Minute30-Sep-09 0:45
Henry Minute30-Sep-09 0:45 
Take a look at the answer in this[^] thread on MSDN.

If you ignore the bit about selecting the RichTextBox from a Tab, you should be able to work it out.

[Edit]
Just found this code:
public void GoToLineAndColumn(int Line, int Column)
{
    Cursor.Current = Cursors.WaitCursor;

    int Offset = 0;
    int i = 0;

    foreach (String L in Lines)
    {
        if (i < Line - 1)
        {
            Offset += L.Length + 1;
        }
        else
        {
            break;
        }

        i++;
    }

    Select(Offset + Column - 1, 0);

    Cursor.Current = Cursors.Arrow;
}

Lines is RichTextBox.Lines property

You might also need the ScrollToCaret method, as I cannot remember if the Select(int, int) automatically brings it into view.
[/Edit]

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

QuestionTextbox input validation Pin
teknolog12329-Sep-09 23:18
teknolog12329-Sep-09 23:18 
AnswerRe: Textbox input validation Pin
stancrm29-Sep-09 23:24
stancrm29-Sep-09 23:24 
GeneralRe: Textbox input validation Pin
teknolog12329-Sep-09 23:58
teknolog12329-Sep-09 23:58 
GeneralRe: Textbox input validation Pin
Calla30-Sep-09 2:34
Calla30-Sep-09 2:34 
QuestionHow to create a Zip Folder with C#.Net Pin
Rahad Rahman29-Sep-09 23:06
professionalRahad Rahman29-Sep-09 23:06 
AnswerRe: How to create a Zip Folder with C#.Net Pin
stancrm29-Sep-09 23:21
stancrm29-Sep-09 23:21 
AnswerRe: How to create a Zip Folder with C#.Net Pin
Paramhans Dubey29-Sep-09 23:26
professionalParamhans Dubey29-Sep-09 23:26 
GeneralRe: How to create a Zip Folder with C#.Net Pin
Paramhans Dubey29-Sep-09 23:27
professionalParamhans Dubey29-Sep-09 23:27 
QuestionHow to stop MSSQL database server with C#.net Pin
Rahad Rahman29-Sep-09 22:39
professionalRahad Rahman29-Sep-09 22:39 
AnswerRe: How to stop MSSQL database server with C#.net Pin
Manas Bhardwaj29-Sep-09 22:44
professionalManas Bhardwaj29-Sep-09 22:44 
AnswerRe: How to stop MSSQL database server with C#.net Pin
Mirko198029-Sep-09 22:44
Mirko198029-Sep-09 22:44 
Questionsocket over the internet? Pin
Tridip Bhattacharjee29-Sep-09 22:34
professionalTridip Bhattacharjee29-Sep-09 22:34 
AnswerRe: socket over the internet? Pin
SeMartens29-Sep-09 22:37
SeMartens29-Sep-09 22:37 
QuestionRetrieve timetable from website to send out as SMS Pin
sheateng29-Sep-09 21:54
sheateng29-Sep-09 21:54 
AnswerRe: Retrieve timetable from website to send out as SMS Pin
Christian Graus29-Sep-09 22:08
protectorChristian Graus29-Sep-09 22:08 
QuestionHide window in taskbar Pin
polycom12329-Sep-09 21:52
polycom12329-Sep-09 21:52 
AnswerRe: Hide window in taskbar Pin
stancrm29-Sep-09 22:00
stancrm29-Sep-09 22:00 

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.