R
Roy Chastain
I have a form that contains a TabControl and a StatusBar.
Each TabPage in the TabControl has a UserControl on it that receives an OnLoad event.
I have a routine to set string values into the StatusBar
public void SetStatus (string new_text_string)
{
statusbar1.Text = new_text_string; //statusbar1 is global on the form not on a TabPage
statusbar1.Refresh(); // I have also tried invalidate
}
This works fine except when it is called from the OnLoad routine in the UserControl. The routine to set the text gets called and
completes normally, but the status never displays in the status bar.
Can anyone explain what might be happening that is causing this behavior?
Thanks
Each TabPage in the TabControl has a UserControl on it that receives an OnLoad event.
I have a routine to set string values into the StatusBar
public void SetStatus (string new_text_string)
{
statusbar1.Text = new_text_string; //statusbar1 is global on the form not on a TabPage
statusbar1.Refresh(); // I have also tried invalidate
}
This works fine except when it is called from the OnLoad routine in the UserControl. The routine to set the text gets called and
completes normally, but the status never displays in the status bar.
Can anyone explain what might be happening that is causing this behavior?
Thanks