Click here to Skip to main content
15,910,603 members
Home / Discussions / C#
   

C#

 
QuestionCompact Flash port access? Pin
Honken69691-Nov-07 2:56
Honken69691-Nov-07 2:56 
QuestionSave a System.Drawing.Graphics graphic as *.bmp Pin
Manfr3d1-Nov-07 2:34
Manfr3d1-Nov-07 2:34 
AnswerRe: Save a System.Drawing.Graphics graphic as *.bmp Pin
pmarfleet1-Nov-07 3:13
pmarfleet1-Nov-07 3:13 
GeneralRe: Save a System.Drawing.Graphics graphic as *.bmp Pin
Manfr3d1-Nov-07 10:30
Manfr3d1-Nov-07 10:30 
QuestionCrystal report aspx page hanging Pin
Chazzysb1-Nov-07 2:29
Chazzysb1-Nov-07 2:29 
QuestionWinForms - UserControl problem Pin
Andrei Ungureanu1-Nov-07 1:26
Andrei Ungureanu1-Nov-07 1:26 
AnswerRe: WinForms - UserControl problem Pin
Mike Hankey1-Nov-07 8:26
mveMike Hankey1-Nov-07 8:26 
QuestionHow do I Find characters in a single line of a richtextbox Pin
I_Need_Help1-Nov-07 1:16
I_Need_Help1-Nov-07 1:16 
I have a richtextbox, each line has in it a unique 6 digit number on the line so I can find the line number but then I want to search just the given line from character position x to end of that line for a different character pattern and select them so as to allow me to change their fore and background colours.

Currently I select the unique text on a line and change it's color thus
rtxtResults.Select( rtxtResults.Find(texttofind),(texttofind.Length));
rtxtResults.SelectionBackColor = Color.Red;
rtxtResults.SelectionColor = Color.Gold;

I then want to be able to search all charicters that follow the text found above to the end of that line only.

I asume I would somehow need to use rtxtResults.GetLineFromCharIndex but can’t work out a way of restricting the find to a single line in the richtextbox.

Any help/sample would be apprichated.

thanks

AnswerRe: How do I Find characters in a single line of a richtextbox Pin
duncanmhor1-Nov-07 1:27
duncanmhor1-Nov-07 1:27 
GeneralRe: How do I Find characters in a single line of a richtextbox Pin
I_Need_Help1-Nov-07 3:15
I_Need_Help1-Nov-07 3:15 
GeneralRe: How do I Find characters in a single line of a richtextbox Pin
Luc Pattyn1-Nov-07 3:52
sitebuilderLuc Pattyn1-Nov-07 3:52 
AnswerRe: How do I Find characters in a single line of a richtextbox Pin
I_Need_Help1-Nov-07 4:04
I_Need_Help1-Nov-07 4:04 
QuestionListbox updation Pin
DeepOceans1-Nov-07 1:15
DeepOceans1-Nov-07 1:15 
QuestionBuild error when building solution in VS.NET Pin
C-sharper 11-Nov-07 0:53
C-sharper 11-Nov-07 0:53 
AnswerRe: Build error when building solution in VS.NET Pin
sindhutiwari1-Nov-07 1:17
sindhutiwari1-Nov-07 1:17 
GeneralRe: Build error when building solution in VS.NET Pin
C-sharper 11-Nov-07 2:20
C-sharper 11-Nov-07 2:20 
GeneralRe: Build error when building solution in VS.NET Pin
C-sharper 11-Nov-07 2:30
C-sharper 11-Nov-07 2:30 
QuestionWhat is better - Object Entitties or Datasets? Pin
rohans841-Nov-07 0:49
rohans841-Nov-07 0:49 
AnswerRe: What is better - Object Entitties or Datasets? Pin
Ennis Ray Lynch, Jr.1-Nov-07 8:40
Ennis Ray Lynch, Jr.1-Nov-07 8:40 
QuestionTablet PC Handwriting recognizer: Urgent Pin
bibhakar1-Nov-07 0:31
bibhakar1-Nov-07 0:31 
AnswerRe: Tablet PC Handwriting recognizer: Urgent Pin
m@u1-Nov-07 0:52
m@u1-Nov-07 0:52 
QuestionResizable control question Pin
adt_brauer1-Nov-07 0:30
adt_brauer1-Nov-07 0:30 
AnswerRe: Resizable control question Pin
Matthew Butler1-Nov-07 6:12
Matthew Butler1-Nov-07 6:12 
Questionproblem with drawString() Pin
arnoldpinto841-Nov-07 0:21
arnoldpinto841-Nov-07 0:21 
AnswerRe: problem with drawString() Pin
Luc Pattyn1-Nov-07 3:55
sitebuilderLuc Pattyn1-Nov-07 3:55 

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.