StatusBar Stops Updating on Minimize ?
-
I have a FileBackup application which has a StatusBar and includes 2 StatusBarPanels. When I minimize the FileBackup window and subsequently maximize it, the StatusBar status stops updating. This also occurs if another window takes focus and then focus is returned to the FileBackup window. I have tried various things but as yet have not found out how to get the StatusBar to resume displaying updates. Status messages fire a StatusBarEvent: private void StatusBarEvent(object sender, FileBackup.StatusEventParams e) { if (e.Panel == 1) { statusBarPanel1.BeginInit(); statusBarPanel1.Text = e.Text; statusBarPanel1.EndInit(); } } Any ideas?
-
I have a FileBackup application which has a StatusBar and includes 2 StatusBarPanels. When I minimize the FileBackup window and subsequently maximize it, the StatusBar status stops updating. This also occurs if another window takes focus and then focus is returned to the FileBackup window. I have tried various things but as yet have not found out how to get the StatusBar to resume displaying updates. Status messages fire a StatusBarEvent: private void StatusBarEvent(object sender, FileBackup.StatusEventParams e) { if (e.Panel == 1) { statusBarPanel1.BeginInit(); statusBarPanel1.Text = e.Text; statusBarPanel1.EndInit(); } } Any ideas?
Mike Bluett wrote:
found out how to
Is there a reason you have BeginInit, EndInit calls?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Goof around music jam with my brothers (with video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Mike Bluett wrote:
found out how to
Is there a reason you have BeginInit, EndInit calls?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Goof around music jam with my brothers (with video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
I was under the impression that doing updates between a BeginInit and EndInit improved performance.
-
I was under the impression that doing updates between a BeginInit and EndInit improved performance.
Well, if you're doing *lots* of updates, especially layout-related updates, that might be wise. But since you're doing only a single call, the Begin/EndInit calls are pure overhead.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Goof around music jam with my brothers (with video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Well, if you're doing *lots* of updates, especially layout-related updates, that might be wise. But since you're doing only a single call, the Begin/EndInit calls are pure overhead.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Goof around music jam with my brothers (with video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
Thank you for the tip, but that doesn't answer my original question of how to get the StatusBar to resume updates.