Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to create a (splitter?)bar as in outlook 2003... Pin
Heath Stewart16-Jan-05 9:09
protectorHeath Stewart16-Jan-05 9:09 
GeneralRe: how to create a (splitter?)bar as in outlook 2003... Pin
just_starting17-Jan-05 4:45
just_starting17-Jan-05 4:45 
GeneralRe: how to create a (splitter?)bar as in outlook 2003... Pin
Heath Stewart17-Jan-05 5:57
protectorHeath Stewart17-Jan-05 5:57 
AnswerRe: how to create a (splitter?)bar as in outlook 2003... Pin
Craig G Fraser17-Jan-05 23:42
Craig G Fraser17-Jan-05 23:42 
GeneralIP Input Custom Control Pin
Hercules0116-Jan-05 1:26
Hercules0116-Jan-05 1:26 
GeneralRe: IP Input Custom Control Pin
Judah Gabriel Himango16-Jan-05 12:33
sponsorJudah Gabriel Himango16-Jan-05 12:33 
GeneralNetworkStream Pin
alexiev_nikolay15-Jan-05 23:58
alexiev_nikolay15-Jan-05 23:58 
GeneralRe: NetworkStream Pin
Heath Stewart16-Jan-05 9:42
protectorHeath Stewart16-Jan-05 9:42 
It doesn't matter where the stream comes from, as long as it represents text if you're using a TextReader derivative like StreamReader.

What encoding did you specify? A NetworkStream is a stream of bytes - not characters - and bytes are encoded specificy for different text representations like 7-bit ASCII or 8-bit ASCII with a codepage (ANSI) for a specific system. There's also UTF8 and Unicode, where Unicode is 2 or 4 bytes per character. .NET stores and treats characters internally as UCS-2 (2-byte Unicode).

Also keep in mind that when you read from a stream the cursor (stream position) is advanced so you cannot read that data again from a non-seekable stream (like a NetworkStream, since bytes are being transferred across the net). If you need a non-seekable stream to be seekable you need to cache the data and read-in the cached data, using that to read and seek in the stream.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralShortcut Keys Pin
egyseiko15-Jan-05 22:49
egyseiko15-Jan-05 22:49 
GeneralRe: Shortcut Keys Pin
alexiev_nikolay16-Jan-05 0:03
alexiev_nikolay16-Jan-05 0:03 
GeneralRe: Shortcut Keys Pin
egyseiko16-Jan-05 1:38
egyseiko16-Jan-05 1:38 
GeneralRe: Shortcut Keys Pin
Mazdak16-Jan-05 5:35
Mazdak16-Jan-05 5:35 
Generalrelative XML file path Pin
asiddiqi@bankalfalah.com15-Jan-05 21:03
sussasiddiqi@bankalfalah.com15-Jan-05 21:03 
GeneralRe: relative XML file path Pin
Heath Stewart16-Jan-05 9:39
protectorHeath Stewart16-Jan-05 9:39 
GeneralRe: relative XML file path Pin
Gregg Holter16-Jan-05 16:44
Gregg Holter16-Jan-05 16:44 
GeneralMarshal Structs Pin
Anonymous15-Jan-05 12:51
Anonymous15-Jan-05 12:51 
GeneralRe: Marshal Structs Pin
Heath Stewart16-Jan-05 9:46
protectorHeath Stewart16-Jan-05 9:46 
Generalloading an xml file Pin
John L. DeVito15-Jan-05 12:48
professionalJohn L. DeVito15-Jan-05 12:48 
GeneralRe: loading an xml file Pin
Robert Rohde15-Jan-05 19:02
Robert Rohde15-Jan-05 19:02 
GeneralParse RTF to HTML Pin
vargasbo15-Jan-05 11:08
vargasbo15-Jan-05 11:08 
GeneralRe: Parse RTF to HTML Pin
Heath Stewart16-Jan-05 9:23
protectorHeath Stewart16-Jan-05 9:23 
GeneralRe: Parse RTF to HTML Pin
Anonymous21-Jan-05 9:34
Anonymous21-Jan-05 9:34 
GeneralRe: Parse RTF to HTML Pin
Heath Stewart21-Jan-05 13:14
protectorHeath Stewart21-Jan-05 13:14 
GeneralAlpha Channel in DirectX Pin
Rob Tomson15-Jan-05 9:35
Rob Tomson15-Jan-05 9:35 
GeneralRe: Alpha Channel in DirectX Pin
Heath Stewart16-Jan-05 9:15
protectorHeath Stewart16-Jan-05 9:15 

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.