Click here to Skip to main content
15,905,414 members
Home / Discussions / C#
   

C#

 
Questionhow to get back and next record from databases Pin
ilu_f94-Apr-08 3:58
ilu_f94-Apr-08 3:58 
AnswerRe: how to get back and next record from databases Pin
Rick van Woudenberg4-Apr-08 4:06
Rick van Woudenberg4-Apr-08 4:06 
Generalrtf and streams Pin
panoskatws4-Apr-08 3:25
panoskatws4-Apr-08 3:25 
GeneralRe: rtf and streams Pin
Rick van Woudenberg4-Apr-08 3:34
Rick van Woudenberg4-Apr-08 3:34 
GeneralRe: rtf and streams Pin
panoskatws4-Apr-08 4:20
panoskatws4-Apr-08 4:20 
GeneralRe: rtf and streams Pin
Rick van Woudenberg4-Apr-08 4:53
Rick van Woudenberg4-Apr-08 4:53 
GeneralRe: rtf and streams Pin
panoskatws5-Apr-08 4:54
panoskatws5-Apr-08 4:54 
GeneralRe: rtf and streams Pin
mav.northwind4-Apr-08 23:24
mav.northwind4-Apr-08 23:24 
Hi!
There's nothing like this available out-of-the-box. StreamReader.ReadLine() reads until the next occurrance of \n, \r or \r\n, nothing to do about it.
In an RTF document, these line break characters are more or less treated as white spaces, so there's no point in trying to use ReadLine() on an RTF file.

You'd have to write your own method to read until \par, but even then the RTF data will not be well-formed (for example, some closing braces will be missing) and I cannot say what a RichTextBox does with partially invalid data...

Regards,
mav

--
Black holes are the places where God divided by 0...

GeneralRe: rtf and streams Pin
panoskatws5-Apr-08 5:16
panoskatws5-Apr-08 5:16 
GeneralThreading problem Pin
Rick van Woudenberg4-Apr-08 2:53
Rick van Woudenberg4-Apr-08 2:53 
GeneralRe: Threading problem Pin
leppie4-Apr-08 3:42
leppie4-Apr-08 3:42 
GeneralRe: Threading problem Pin
SeeBees4-Apr-08 16:15
SeeBees4-Apr-08 16:15 
GeneralRe: Threading problem Pin
S. Senthil Kumar5-Apr-08 13:56
S. Senthil Kumar5-Apr-08 13:56 
Questionis there a way to restrict possible values of a string param in a method Pin
Adam Harbour4-Apr-08 2:40
Adam Harbour4-Apr-08 2:40 
GeneralRe: is there a way to restrict possible values of a string param in a method Pin
Pete O'Hanlon4-Apr-08 2:50
mvePete O'Hanlon4-Apr-08 2:50 
GeneralWrong data returned! Pin
Graham_44-Apr-08 1:24
Graham_44-Apr-08 1:24 
GeneralPlugins for MS Office, Internet explorer using C# Pin
Vikas K.4-Apr-08 0:53
Vikas K.4-Apr-08 0:53 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
John_Adams4-Apr-08 1:06
John_Adams4-Apr-08 1:06 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
Vikas K.4-Apr-08 1:24
Vikas K.4-Apr-08 1:24 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
Member 38312474-Apr-08 3:27
Member 38312474-Apr-08 3:27 
QuestionHow to get Keypress event to menuStrip Pin
ASysSolvers3-Apr-08 23:48
ASysSolvers3-Apr-08 23:48 
GeneralBLOB reading and writing C# Pin
Dev Motiramani3-Apr-08 23:25
Dev Motiramani3-Apr-08 23:25 
GeneralRe: BLOB reading and writing C# Pin
Giorgi Dalakishvili3-Apr-08 23:32
mentorGiorgi Dalakishvili3-Apr-08 23:32 
GeneralRe: BLOB reading and writing C# Pin
Dev Motiramani4-Apr-08 0:06
Dev Motiramani4-Apr-08 0:06 
Generalusing C# to implement Windows Service Pin
George_George3-Apr-08 22:32
George_George3-Apr-08 22:32 

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.