I have a statusbar and created a textbox to double test this however the value is being sent as I did a MessageBox.Show (value); and it shows the value being passed yet it is not being set. Can anyone explain why? Here is my code. The MainGUI is a partial class with : Form. Does that make a difference?
MainGUI Class
database.cs
Any help would be appreciated.
MainGUI Class
Code:
public string stsMessageText
{
get
{
return stsMessage.Text;
}
set
{
stsMessage.Text = value;
MessageBox.Show("Value: " + value);
}
}
Code:
MainGUI main = new MainGUI(); main.stsMessageText = "Connected to database";
Comment