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. Visual Basic
  4. Progress bar for application loading

Progress bar for application loading

Scheduled Pinned Locked Moved Visual Basic
question
6 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.
  • S Offline
    S Offline
    szevy_suez
    wrote on last edited by
    #1

    HI, Is there way to have the progress bar works according the loading percentage of another application opened from my application? Thanks.

    D 1 Reply Last reply
    0
    • S szevy_suez

      HI, Is there way to have the progress bar works according the loading percentage of another application opened from my application? Thanks.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      No. There is no information that is returned by the system's loader at any time, let alone anything useful for a progress bar. Your other application would have to expose something like this, but can only do so after it's loaded, started, and initializing itself. Dave Kreskowiak Microsoft MVP - Visual Basic

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        No. There is no information that is returned by the system's loader at any time, let alone anything useful for a progress bar. Your other application would have to expose something like this, but can only do so after it's loaded, started, and initializing itself. Dave Kreskowiak Microsoft MVP - Visual Basic

        S Offline
        S Offline
        szevy_suez
        wrote on last edited by
        #3

        Actually, I just need an indication that the application has loaded. If this is the case, is there any way to do it?

        D 1 Reply Last reply
        0
        • S szevy_suez

          Actually, I just need an indication that the application has loaded. If this is the case, is there any way to do it?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          szevy_suez wrote:

          I just need an indication that the application has loaded.

          What does that mean? If you talking about the application initializing itself, then yes you can. All you have to do update the ProgressBar in your applications initialization code. If you're talking about a progress bar while the application is being loaded from disk, then no, you can't. The system Loader doesn't provide any feedback at all. Your ProgressBar would go from 0 to 100% in one step. Dave Kreskowiak Microsoft MVP - Visual Basic

          S 1 Reply Last reply
          0
          • D Dave Kreskowiak

            szevy_suez wrote:

            I just need an indication that the application has loaded.

            What does that mean? If you talking about the application initializing itself, then yes you can. All you have to do update the ProgressBar in your applications initialization code. If you're talking about a progress bar while the application is being loaded from disk, then no, you can't. The system Loader doesn't provide any feedback at all. Your ProgressBar would go from 0 to 100% in one step. Dave Kreskowiak Microsoft MVP - Visual Basic

            S Offline
            S Offline
            szevy_suez
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            If you talking about the application initializing itself, then yes you can. All you have to do update the ProgressBar in your applications initialization code.

            Sorry, but I don't really understand what you mean by application initializing itself. Actually, I just want my application to know when the other application has loaded, so I can make that application the active application at that instance and use sendkeys method. So I thought can set a condition if the progressbar is 100% then I can proceed with Appactive and sendkeys methods. I don't know whether it's appropriate, please advice. Thanks

            D 1 Reply Last reply
            0
            • S szevy_suez

              Dave Kreskowiak wrote:

              If you talking about the application initializing itself, then yes you can. All you have to do update the ProgressBar in your applications initialization code.

              Sorry, but I don't really understand what you mean by application initializing itself. Actually, I just want my application to know when the other application has loaded, so I can make that application the active application at that instance and use sendkeys method. So I thought can set a condition if the progressbar is 100% then I can proceed with Appactive and sendkeys methods. I don't know whether it's appropriate, please advice. Thanks

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              szevy_suez wrote:

              Actually, I just want my application to know when the other application has loaded

              As far as the application being loaded is concerned, it's when the next statement after whatever your using to load the other app executes. But that's NOT when the other app finishes initializing and doing its own startup stuff. There's no way to tell when that's done. The only thing you can do is write a routine to look for the title of a window in that application every so often. A ProgressBar isn't going to help you at all...

              szevy_suez wrote:

              then I can proceed with Appactive and sendkeys methods

              Good luck! Using SendKeys is not the most reliable way to controlanother application. The best method is if the application exposes a COM object model. Dave Kreskowiak Microsoft MVP - Visual Basic

              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