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. ( ( ( (How do I suppress WaitCursor) ) ) )

( ( ( (How do I suppress WaitCursor) ) ) )

Scheduled Pinned Locked Moved C#
questionhelp
7 Posts 3 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.
  • P Offline
    P Offline
    peshkunta
    wrote on last edited by
    #1

    Guys I'm at a loss! I don't want wait cursor to be displayed in my app at all. How can I suppress it totally or change the picture of the WaitCursor to Arrow (default) cursor - so that anytime wait cursor is invoked it would show the arrow, hence show no change. And why doesn't Cursor.Current = Cursors.Arrow; work. It's supposed to set the current cursor, but it does nothing! Any help is appreciated!

    D 1 Reply Last reply
    0
    • P peshkunta

      Guys I'm at a loss! I don't want wait cursor to be displayed in my app at all. How can I suppress it totally or change the picture of the WaitCursor to Arrow (default) cursor - so that anytime wait cursor is invoked it would show the arrow, hence show no change. And why doesn't Cursor.Current = Cursors.Arrow; work. It's supposed to set the current cursor, but it does nothing! Any help is appreciated!

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

      That all depends on what's causing the wait cursor. If it's a web browser control on your form, then no, you can't stop the wait cursor from happening. The browser control is what' setting the cursor to Busy. So long as the cursor is over that control, it'll show up Busy. Changing the image of the cursor, as in your workaround, would require changing the image system-wide. A practice I greatly discourage. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      P 1 Reply Last reply
      0
      • D Dave Kreskowiak

        That all depends on what's causing the wait cursor. If it's a web browser control on your form, then no, you can't stop the wait cursor from happening. The browser control is what' setting the cursor to Busy. So long as the cursor is over that control, it'll show up Busy. Changing the image of the cursor, as in your workaround, would require changing the image system-wide. A practice I greatly discourage. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        P Offline
        P Offline
        peshkunta
        wrote on last edited by
        #3

        "Changing the image of the cursor, as in your workaround, would require changing the image system-wide. A practice I greatly discourage." I agree. That would be sloppy. Yes, the WebBrowser control is causing it to fire the cursor change, so how can I prevent that. Can I derive from the WebBrowser control and change it there? There's got to be a way to do this!!!!

        D 1 Reply Last reply
        0
        • P peshkunta

          "Changing the image of the cursor, as in your workaround, would require changing the image system-wide. A practice I greatly discourage." I agree. That would be sloppy. Yes, the WebBrowser control is causing it to fire the cursor change, so how can I prevent that. Can I derive from the WebBrowser control and change it there? There's got to be a way to do this!!!!

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

          peshkunta wrote:

          Yes, the WebBrowser control is causing it to fire the cursor change, so how can I prevent that.

          There's no way to prevent it. You could create you own class from the WebBrowser class, but you still wouldn't be able to prevent the cursor from changing because it's not the class code that's changing the cursor. It's the Internet Explorer object code that's doing it, and there's no way you can change that. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          P 1 Reply Last reply
          0
          • D Dave Kreskowiak

            peshkunta wrote:

            Yes, the WebBrowser control is causing it to fire the cursor change, so how can I prevent that.

            There's no way to prevent it. You could create you own class from the WebBrowser class, but you still wouldn't be able to prevent the cursor from changing because it's not the class code that's changing the cursor. It's the Internet Explorer object code that's doing it, and there's no way you can change that. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            P Offline
            P Offline
            peshkunta
            wrote on last edited by
            #5

            The WebBrowser object is a control. Why couldn't I make a custom web browser control???

            D D 2 Replies Last reply
            0
            • P peshkunta

              The WebBrowser object is a control. Why couldn't I make a custom web browser control???

              D Offline
              D Offline
              Dan Neely
              wrote on last edited by
              #6

              peshkunta wrote:

              The WebBrowser object is a control. Why couldn't I make a custom web browser control???

              You could, but doing so would require writing your own browser. You could largely bypass doing so by using the firefox codebase, but would inject the GPL into your code as a result.

              1 Reply Last reply
              0
              • P peshkunta

                The WebBrowser object is a control. Why couldn't I make a custom web browser control???

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

                The WebBrowser class in .NET is a WRAPPER for the IE COM object. In order to supply this functionality, you'd have to write your own web browser class, supplying all the HTML rendering code, but does not wrap the IE COM control, which is entirely possible. Just creating a new class, inheriting from the existing WebBrowser class, will not allow you to do what you want, since you're inheriting from the WebBrowser class, you're also inheriting the COM object that it wraps. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                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