473,396 Members | 1,734 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,396 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 1609
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.