Click here to Skip to main content
15,908,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Prefixing Classes and Interfaces Pin
J. Dunlap19-Apr-03 14:02
J. Dunlap19-Apr-03 14:02 
GeneralWrappers for P/Invoke Pin
Alex Korchemniy19-Apr-03 8:27
Alex Korchemniy19-Apr-03 8:27 
GeneralRe: Wrappers for P/Invoke Pin
Stephane Rodriguez.19-Apr-03 9:13
Stephane Rodriguez.19-Apr-03 9:13 
GeneralRe: Wrappers for P/Invoke Pin
Alex Korchemniy19-Apr-03 15:34
Alex Korchemniy19-Apr-03 15:34 
GeneralRe: Wrappers for P/Invoke Pin
Stephane Rodriguez.19-Apr-03 20:58
Stephane Rodriguez.19-Apr-03 20:58 
QuestionHwo to use SecondaryBuffer to play sound through Buffer? Pin
JmmJ19-Apr-03 1:02
JmmJ19-Apr-03 1:02 
AnswerRe: Hwo to use SecondaryBuffer to play sound through Buffer? Pin
leppie19-Apr-03 5:22
leppie19-Apr-03 5:22 
GeneralRe: Hwo to use SecondaryBuffer to play sound through Buffer? Pin
Stephane Rodriguez.19-Apr-03 9:06
Stephane Rodriguez.19-Apr-03 9:06 
GeneralRe: Hwo to use SecondaryBuffer to play sound through Buffer? Pin
leppie19-Apr-03 9:53
leppie19-Apr-03 9:53 
GeneralRe: Hwo to use SecondaryBuffer to play sound through Buffer? Pin
JmmJ19-Apr-03 19:05
JmmJ19-Apr-03 19:05 
QuestionHow to create browsable Help Documentation Pin
STW18-Apr-03 19:21
STW18-Apr-03 19:21 
AnswerRe: How to create browsable Help Documentation Pin
Stephane Rodriguez.18-Apr-03 20:17
Stephane Rodriguez.18-Apr-03 20:17 
AnswerRe: How to create browsable Help Documentation Pin
Don_s22-Apr-03 6:11
Don_s22-Apr-03 6:11 
GeneralDisposing of MSHTML/COM objects. Pin
Arun Bhalla18-Apr-03 16:40
Arun Bhalla18-Apr-03 16:40 
GeneralRe: Disposing of MSHTML/COM objects. Pin
Stephane Rodriguez.18-Apr-03 20:14
Stephane Rodriguez.18-Apr-03 20:14 
GeneralRe: Disposing of MSHTML/COM objects. Pin
Arun Bhalla19-Apr-03 9:09
Arun Bhalla19-Apr-03 9:09 
GeneralRe: Disposing of MSHTML/COM objects. Pin
Stephane Rodriguez.19-Apr-03 10:00
Stephane Rodriguez.19-Apr-03 10:00 
Questionselect entire line in RichTextBox? Pin
Nick Seng18-Apr-03 15:52
Nick Seng18-Apr-03 15:52 
AnswerRe: select entire line in RichTextBox? Pin
Arun Bhalla18-Apr-03 16:37
Arun Bhalla18-Apr-03 16:37 
AnswerRe: select entire line in RichTextBox? Pin
Stephane Rodriguez.18-Apr-03 21:12
Stephane Rodriguez.18-Apr-03 21:12 
As a general rule,
If the .NET API for a given control does not seem to expose the method you are looking for, then make sure to give a look at the WIN32 API for the underlying control.
In the case of RichText controls, you'll find that there is no direct way of selecting a row either.
Which brings to the point you have to build this selection somehow.




The Find methods exposed by the RichText control both search then select text.
Since none of these methods take a line number as parameter, I am afraid you have to build a char range yourself then call
[C#]
public int RichTextBox.Find(
   string str,
   int start,
   int end,
   RichTextBoxFinds options
);


The char range can be obtained by doing preliminary Find (with no selection flag) searching the carriage returns or whatever info you might know.
GeneralOutlook 2000 in C# (?) Pin
ke5in18-Apr-03 14:38
ke5in18-Apr-03 14:38 
GeneralRe: Outlook 2000 in C# (?) Pin
Stephane Rodriguez.18-Apr-03 20:39
Stephane Rodriguez.18-Apr-03 20:39 
GeneralRe: Outlook 2000 in C# (?) Pin
Jasper4C#20-Apr-03 12:43
Jasper4C#20-Apr-03 12:43 
GeneralRe: Outlook 2000 in C# (?) Pin
Don_s22-Apr-03 6:13
Don_s22-Apr-03 6:13 
GeneralData Source Locator missing. Re-Install Visual Studio Pin
William O'Malley18-Apr-03 13:21
sussWilliam O'Malley18-Apr-03 13:21 

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.