Sending data between forms without using .Show()

Posted by slodice on Stack Overflow See other posts from Stack Overflow or by slodice
Published on 2010-05-24T18:36:22Z Indexed on 2010/05/24 18:41 UTC
Read the original article Hit count: 191

Filed under:
|
|
|
|

Lets say I have 2 forms. In Form1 I have a timer, which counts (count++) and in Form2 I have a text box (textBox1) which shows how much the timer has counted. Now I want to know how would I show the integer 'count' in 'textBox1' without any user interference (clicking buttons) or in other words, how would I make the data in the text box auto refresh (without using Form2 form = new Form2(); form.Show();). I want 2 separate windows, in one a running timer and in the other a textbox displaying how much the timer has counted and constantly updating (with the help of the timer, I presume).

© Stack Overflow or respective owner

Related posts about c#

Related posts about forms