basically what im trying to do is no matter what happens in the application, whether something in a webbrowser has been clicked or whatever i want the cursor to stay normal (default)
can anyone help?
thanks
Printable View
basically what im trying to do is no matter what happens in the application, whether something in a webbrowser has been clicked or whatever i want the cursor to stay normal (default)
can anyone help?
thanks
The operating system itself, as well as many pieces of canned software that come with the operating system, like the IE, take control of the mouse pointer.
Why would you want to do this anyway? Mots people are used to certain mouse icons at certain times:
Waiting : Hourglass
Resizeing : The Arrow thing
Web : The Hand.
Why would you want to change this?
i am trying to do this because im using a webbrowser that is not visible on the form, but is still their..
using a command button on my form it clicks a button on the webbrowser causing a hourglass cursor, i do not wish this to happen.
regards.
im thinking this is either really hard, or impossible..
i just, somehow, don't want the webbrowser to give off a hourglass pointer when it navigates.. :)
anyone else got any ideas?
thanks :)
If you can figure out exactly where and when to use
Screen.Mousepointer = vbNormal
OR
Me.Mousepointer = vbNormal
(normal?)
then you probably have your problem solved.
Have you tried this yet?
thanks for the reply, yes i have tried that...
it will reduce the time the pointer is a hourglass, but not completley because as far as i know, 2 lines of code can't be executed at EXACTLY the same time, thus it stil has a hourglass pointer for a period of time..
Does it need to be a web browser. Couldn't you use the winsock control or inet control?
unless you know how to "click" command buttons on a webpage using inet or winsock, no..
i was thinking is their a property or somethign to see if the mouse is on the form and if it is set the mouse pointer to defult?
You can click Command Buttons.
Something like:
VB Code:
WebBrowser1.Document.Form.submit
notice the: on a webpage using inet or winsock
:) :rolleyes: