Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. StatusBar Stops Updating on Minimize ?

StatusBar Stops Updating on Minimize ?

Scheduled Pinned Locked Moved C#
tutorialquestioncareer
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mike Bluett
    wrote on last edited by
    #1

    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?

    J 1 Reply Last reply
    0
    • M Mike Bluett

      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?

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • J Judah Gabriel 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

        M Offline
        M Offline
        Mike Bluett
        wrote on last edited by
        #3

        I was under the impression that doing updates between a BeginInit and EndInit improved performance.

        J 1 Reply Last reply
        0
        • M Mike Bluett

          I was under the impression that doing updates between a BeginInit and EndInit improved performance.

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • J Judah Gabriel 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

            M Offline
            M Offline
            Mike Bluett
            wrote on last edited by
            #5

            Thank you for the tip, but that doesn't answer my original question of how to get the StatusBar to resume updates.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups