VB.NET 2005, Change text of control on a Splashscreen

M

Maurice Mertens

Hi,

I'm currently working on an app in VB.NET 2005 which uses a splashscreen.
In the 'my project' settings I used the 'Spash screen' setting to set the
form that will be the splash screen.

The next thing I want to do is change the text of a control on this form so
the app can show some information about the startup proces.

There's a control ctlText on the Splashscreen. I also have this property on
the Splashscreen:

Public Writeonly Property SetText() As String
Set(ByVal value As String)
me.ctlText.text = value
End Set
End Property

When I call the SetText property from my main app I get an cross-thread
exception.

How can I change the text on a Splashscreen?


Maurice
 
G

Guest

Hi Maurice,
I accomplish this by caling a public method of the splash form. That method
uses an parameter as an ENUM that determines which text to display with each
call. The text changes based on which group selection is clicked.
 

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