Hi,
I have a textbox on a form. When I assign a string to the .Text
property while in my form's constructor, the program just hangs
indefinitely.
Alternatively, if I assign the string to the form's .Text property, it
works fine.
this code hangs (never returns from 3rd line):
public frmSubSystemInterface()
{
InitializeComponent();
if ( CDLIsConnected(9) == 1 ) // external dll call
txtMessage.Text = "XRY CONNECTED";
}
this code works fine:
public frmSubSystemInterface()
{
InitializeComponent();
if ( CDLIsConnected(9) == 1 ) // external dll call
this.Text = "XRY CONNECTED";
}
Any ideas?