Click here to Skip to main content
15,897,334 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Data Source Locator missing. Re-Install Visual Studio Pin
Stephane Rodriguez.18-Apr-03 20:29
Stephane Rodriguez.18-Apr-03 20:29 
GeneralAdding icons to DLL assembly. Pin
Arun Bhalla18-Apr-03 12:23
Arun Bhalla18-Apr-03 12:23 
GeneralRe: Adding icons to DLL assembly. Pin
Stephane Rodriguez.18-Apr-03 22:30
Stephane Rodriguez.18-Apr-03 22:30 
GeneralRe: Adding icons to DLL assembly. Pin
Arun Bhalla19-Apr-03 7:20
Arun Bhalla19-Apr-03 7:20 
GeneralRe: Adding icons to DLL assembly. Pin
Stephane Rodriguez.19-Apr-03 11:18
Stephane Rodriguez.19-Apr-03 11:18 
GeneralRe: Adding icons to DLL assembly. Pin
Arun Bhalla19-Apr-03 12:43
Arun Bhalla19-Apr-03 12:43 
GeneralRe: Adding icons to DLL assembly. Pin
Stephane Rodriguez.19-Apr-03 20:35
Stephane Rodriguez.19-Apr-03 20:35 
GeneralVisio 2002 code templates for XML Documentation Pin
David Wulff18-Apr-03 12:07
David Wulff18-Apr-03 12:07 
GeneralRe: Visio 2002 code templates for XML Documentation Pin
David Wulff19-Apr-03 1:13
David Wulff19-Apr-03 1:13 
GeneralReferring the Host Pin
Vasudevan Deepak Kumar18-Apr-03 1:05
Vasudevan Deepak Kumar18-Apr-03 1:05 
GeneralRe: Referring the Host Pin
Stephane Rodriguez.18-Apr-03 21:20
Stephane Rodriguez.18-Apr-03 21:20 
GeneralRe: Referring the Host Pin
J. Dunlap19-Apr-03 8:52
J. Dunlap19-Apr-03 8:52 

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.