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

  • Thread starter Thread starter Maurice Mertens
  • Start date Start date
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
 
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.
 
Back
Top