Click here to Skip to main content
15,895,423 members
Home / Discussions / C#
   

C#

 
GeneralAccessing c# ActiveX Controls from unmanaged C++ Pin
_eulogy_1-May-05 5:43
_eulogy_1-May-05 5:43 
GeneralRe: Accessing c# ActiveX Controls from unmanaged C++ Pin
Judah Gabriel Himango1-May-05 9:45
sponsorJudah Gabriel Himango1-May-05 9:45 
GeneralRe: Accessing c# ActiveX Controls from unmanaged C++ Pin
Anonymous1-May-05 10:34
Anonymous1-May-05 10:34 
GeneralRe: Accessing c# ActiveX Controls from unmanaged C++ Pin
Judah Gabriel Himango1-May-05 17:21
sponsorJudah Gabriel Himango1-May-05 17:21 
GeneralI want to generate random numbers Pin
Mohammed Aijaz Mohiuddin1-May-05 4:25
Mohammed Aijaz Mohiuddin1-May-05 4:25 
GeneralRe: I want to generate random numbers Pin
Colin Angus Mackay1-May-05 4:27
Colin Angus Mackay1-May-05 4:27 
GeneralRe: I want to generate random numbers Pin
eggie51-May-05 5:09
eggie51-May-05 5:09 
GeneralRichTextBox Question Pin
QzRz1-May-05 3:21
QzRz1-May-05 3:21 
Hi...

I have a richtextbox, it has about 200 lines, and i want to go to line 125 when i press a button!

I have made this code...
int count = 0;
int GoTo = 125;
for(int i = 0; i < GoTo; i++)
{
count += richTextBoxText.Lines[i].Length;
}
richTextBoxText.Select(count,0);

but this does not work.
My idea was to get all chars from the lines until it reached 125, and then go to the line using the select method.

Can anyone help me how to do go to a line in a richTextBox?

Thanks
QzRz
GeneralRe: RichTextBox Question Pin
Judah Gabriel Himango1-May-05 9:47
sponsorJudah Gabriel Himango1-May-05 9:47 
GeneralSend info about to press button Pin
Pelada_Girl30-Apr-05 14:52
Pelada_Girl30-Apr-05 14:52 
GeneralRe: Send info about to press button Pin
Luis Alonso Ramos30-Apr-05 15:06
Luis Alonso Ramos30-Apr-05 15:06 
GeneralRe: Send info about to press button Pin
Pelada_Girl30-Apr-05 15:19
Pelada_Girl30-Apr-05 15:19 
GeneralRe: Send info about to press button Pin
Luis Alonso Ramos30-Apr-05 15:25
Luis Alonso Ramos30-Apr-05 15:25 
GeneralRe: Send info about to press button Pin
Pelada_Girl30-Apr-05 15:30
Pelada_Girl30-Apr-05 15:30 
GeneralRe: Send info about to press button Pin
Luis Alonso Ramos30-Apr-05 15:41
Luis Alonso Ramos30-Apr-05 15:41 
GeneralRe: Send info about to press button Pin
Pelada_Girl30-Apr-05 17:51
Pelada_Girl30-Apr-05 17:51 
GeneralC# custom &quot;drop down list&quot; Pin
_eulogy_30-Apr-05 11:26
_eulogy_30-Apr-05 11:26 
GeneralRe: C# custom &quot;drop down list&quot; Pin
Judah Gabriel Himango1-May-05 9:48
sponsorJudah Gabriel Himango1-May-05 9:48 
GeneralRe: C# custom &quot;drop down list&quot; Pin
Anonymous1-May-05 10:30
Anonymous1-May-05 10:30 
GeneralRe: C# custom &quot;drop down list&quot; Pin
Judah Gabriel Himango1-May-05 17:22
sponsorJudah Gabriel Himango1-May-05 17:22 
GeneralImage Acqusition from scanner in c# Pin
Member 149969330-Apr-05 11:20
Member 149969330-Apr-05 11:20 
GeneralRe: Debugging Pin
Tomas Brennan30-Apr-05 5:28
Tomas Brennan30-Apr-05 5:28 
GeneralRe: Debugging Pin
Colin Angus Mackay30-Apr-05 10:54
Colin Angus Mackay30-Apr-05 10:54 
GeneralRe: Debugging Pin
EssOEss30-Apr-05 19:51
EssOEss30-Apr-05 19:51 
QuestionError handling using MS Word ? Pin
fracalifa30-Apr-05 5:18
fracalifa30-Apr-05 5:18 

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.