Passing CONTINUOUS data between MULTIPLE displayed forms

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
So I am creating a speedometer application that reads multiple sensor values off of a vehicle. This will all be sent over the a serial connection. I have no problem getting the data in the form I need read in from the serial lines. What
my problem is that I need to have two child forms open that each have a value passed to them from the parent form which will be reading in the serial and correctly distributing the data. most examples online show how to change the data on a button click,
with a statement similar to the one below:
<table cellspacing="0" cellpadding="0" style="border-width:0px; margin:2px 0px; width:99%; border-bottom-color:#eeeeee; border-bottom-style:solid; border-collapse:collapse; background-color:#ffffff
<tbody>
<tr>
<td style="background-color:#f7f7f7 Form2 form2 = <span style="color:blue new<span style="font-size:11px Form2(<span style="color:blue passed value<span style="font-size:11px );
</td>
</tr>
<tr>
<td>
form2.Show();

I can get it to work to pass the vlaue once, but I want to keep both child windows open and display them to the user. I dont want to put some words in a text box and then show them on a button click like most of the help online.
If I use the above method each time the new data comes in, a new window is created, needless to say my PC locks up.

This leads me to the question also is if its possible to show two different windows and have both continually changing at about 10Hz...
Any help would be appreciated, Thanks. Im not asking for you to write my code, but some tips
</td>
</tr>
</tbody>
</table>

View the full article
 
Back
Top