Click here to Skip to main content
15,914,780 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is there a way to resize a textbox to fit it's contents?? Pin
mav.northwind27-Apr-05 20:15
mav.northwind27-Apr-05 20:15 
GeneralRe: Is there a way to resize a textbox to fit it's contents?? Pin
OnlyTaz28-Apr-05 10:50
OnlyTaz28-Apr-05 10:50 
QuestionWhy can't I change Row during Insert?? Pin
Besinci27-Apr-05 14:09
Besinci27-Apr-05 14:09 
AnswerRe: Why can't I change Row during Insert?? Pin
Marc Clifton28-Apr-05 6:09
mvaMarc Clifton28-Apr-05 6:09 
GeneralRe: Why can't I change Row during Insert?? Pin
Besinci28-Apr-05 11:53
Besinci28-Apr-05 11:53 
GeneralDeployment Project: Getting Property Value into DWORD Registry Entry Pin
mwhouser27-Apr-05 13:45
mwhouser27-Apr-05 13:45 
Questionstream? how does it work? Pin
Snowjim27-Apr-05 12:26
Snowjim27-Apr-05 12:26 
AnswerRe: stream? how does it work? Pin
Dave Kreskowiak27-Apr-05 16:28
mveDave Kreskowiak27-Apr-05 16:28 
No. A MemoryStream works prety much likle a Text file, but in memory. The data is not removed when read. It just moves the current position pointer to the next character to be read/written.

There is a buffered area in a Stream operation that temporarily holds data being written to the Stream. This data typically isn't written directly to the Stream immediately, kind of like a cache. In order to make sure that the changes (data written) to the stream are finally commited to the stream, you call the .Flush() method.

Now, a Stream only has ONE position pointer. If you write a bunch of data to the stream, you have to position the pointer (seek) to the beginning of the stream is you waht to read all that data. Now, if you don't reposition the pointer back to the end of the data, your next write will overwrite data that you have written, but not read yet.

I think what your doing can be done with methods that are more suited to the task, but I don't remember you posting a specific description of why your going through this trouble.




RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: stream? how does it work? Pin
Snowjim27-Apr-05 22:44
Snowjim27-Apr-05 22:44 
GeneralRe: stream? how does it work? Pin
turbochimp28-Apr-05 3:35
turbochimp28-Apr-05 3:35 
GeneralRe: stream? how does it work? Pin
Snowjim28-Apr-05 6:47
Snowjim28-Apr-05 6:47 
GeneralRe: stream? how does it work? Pin
turbochimp28-Apr-05 7:22
turbochimp28-Apr-05 7:22 
GeneralRe: stream? how does it work? Pin
Snowjim28-Apr-05 7:31
Snowjim28-Apr-05 7:31 
GeneralRe: stream? how does it work? Pin
turbochimp28-Apr-05 7:46
turbochimp28-Apr-05 7:46 
GeneralAPI commands Pin
c00lguy27-Apr-05 12:13
c00lguy27-Apr-05 12:13 
GeneralRe: API commands Pin
Dave Kreskowiak27-Apr-05 16:22
mveDave Kreskowiak27-Apr-05 16:22 
GeneralRe: API commands Pin
c00lguy28-Apr-05 1:12
c00lguy28-Apr-05 1:12 
QuestionWinForm problem please help? Pin
OnlyTaz27-Apr-05 10:40
OnlyTaz27-Apr-05 10:40 
AnswerRe: WinForm problem please help? Pin
Besinci27-Apr-05 14:43
Besinci27-Apr-05 14:43 
GeneralRe: WinForm problem please help? Pin
OnlyTaz27-Apr-05 14:56
OnlyTaz27-Apr-05 14:56 
GeneralRe: WinForm problem please help? Pin
Dave Kreskowiak27-Apr-05 16:19
mveDave Kreskowiak27-Apr-05 16:19 
Generalwinforms app to control browser Pin
fortyonejb27-Apr-05 10:09
fortyonejb27-Apr-05 10:09 
GeneralRe: winforms app to control browser Pin
MoustafaS27-Apr-05 10:18
MoustafaS27-Apr-05 10:18 
GeneralRe: winforms app to control browser Pin
fortyonejb27-Apr-05 15:50
fortyonejb27-Apr-05 15:50 
GeneralRe: winforms app to control browser Pin
Dave Kreskowiak27-Apr-05 16:17
mveDave Kreskowiak27-Apr-05 16:17 

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.