473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Listening to stream changes

I am ultimately trying to do a real-time bind of sorts between a
MemoryStream to a TextBox such that as data is written to my stream, the
textbox remains up-to-date. There is some behinds-the-scenes data mgmt I
want to do, so I will ultimately have some intermediate class, but the
trouble I am hitting is how to determine when data is written to the stream.
Streams have no events, so I was wondering if there is some
generally-accepted means of doing this.
Jul 21 '05 #1
1 1610
Nm...found a solution I like better: subclass MemoryStream into
TextBoxStream and just override Flush(). The additional processing of the
box (mainly overflow logic) will go in the TextChanged event of the TextBox
itself.

"Keith Patrick" <ri*******************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I am ultimately trying to do a real-time bind of sorts between a
MemoryStream to a TextBox such that as data is written to my stream, the
textbox remains up-to-date. There is some behinds-the-scenes data mgmt I
want to do, so I will ultimately have some intermediate class, but the
trouble I am hitting is how to determine when data is written to the stream. Streams have no events, so I was wondering if there is some
generally-accepted means of doing this.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: andrewcw | last post by:
Missing the obvious here..thanks.. I need to open the file exclusively for on entry like this: FileStream stream = null; stream = File.Open(fiPath, FileMode.Open,...
3
by: MJB | last post by:
I'm getting an IStream back from function xmlHttp.responsestream. I would like to convert this to a System.IO.Stream in order to work with it in my application. Has anyone encountered this and...
3
by: Peter Rilling | last post by:
Is there anyway of being notified when a Stream is modified? Basically, If one of my objects is passed a stream, I would like to initialize an object cache. Then when the Stream changes, I would...
6
by: John J. Hughes II | last post by:
My code starts a TCP/IP socket listener and waits for incoming connections. This works fine on my system and my test system but I have a customer who say it does not work on their system. As far...
7
by: simonrigby_uk | last post by:
Hi all, Sorry if this is the incorrect group but I couldn't see anything directly relevant. Can someone confirm for me what happens when two network streams are sent to an application at the...
5
by: Bob Garbados | last post by:
I have a .net website and I need to connect to a service listening on a specific port from that website. The service and website are on the same windows 03 server. I don't know where to start on...
1
by: Tom Edelbrok | last post by:
I'm reading embedded bitmaps from an EXE project and everthing works fine. I do a GetExecutingAssembly, followed by setting a stream object to...
1
by: Keith Patrick | last post by:
I am ultimately trying to do a real-time bind of sorts between a MemoryStream to a TextBox such that as data is written to my stream, the textbox remains up-to-date. There is some...
3
by: sven.suursoho | last post by:
Hello, In main(), the first output API is what I try to achieve. Unfortunately it fails, printing first string as pointer instead of human readable message. Tried to initialize str(""), set new...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.