Thread communication

M

Maurice

Hi all,

In my application, MainApp, I start a new thread which shows a form:

Public Sub SplashThreadEntryPoint()
Dim SplashScreen As New frmSplash
SplashScreen.ShowDialog()
End Sub

SplashThreaded.Start()

On this form(frmSplash) that is showed in a new thread, is a textbox
control.
In MainApp_Load I want to change the textbox.text value on frmSplash
several times. How can I do this?


Thanx!

Maurice
 
J

Jon Skeet [C# MVP]

Maurice said:
In my application, MainApp, I start a new thread which shows a form:

Public Sub SplashThreadEntryPoint()
Dim SplashScreen As New frmSplash
SplashScreen.ShowDialog()
End Sub

SplashThreaded.Start()

On this form(frmSplash) that is showed in a new thread, is a textbox
control.
In MainApp_Load I want to change the textbox.text value on frmSplash
several times. How can I do this?

See http://www.pobox.com/~skeet/csharp/threads/winforms.shtml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top