473,378 Members | 1,475 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

MousePointer

I am having trouble getting the MousePointer method working.
I am using
frmMain.MousePointer = vbHourglass
..
..
..
..
..frmMain.MousePointer = vbNormal

The pointer does not change. If I put a msgbox before the call it works
fine. Is my code going to fast? Does windows need to be Paused?

Help Please
G
Jul 17 '05 #1
2 4248
"Grant from GD Technologies" <gr***@gdtech.ca> wrote
I am having trouble getting the MousePointer method working.
I am using
frmMain.MousePointer = vbHourglass
...
frmMain.MousePointer = vbNormal

The pointer does not change. If I put a msgbox before the call it works
fine. Is my code going to fast? Does windows need to be Paused?

Yes, changing the mouse pointer is a very low priority task. Issue several
DoEvents right after changing it, or issue a few (sparingly) in your code.

Either, and sometimes both are needed. Try it and see....

LFS


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #2
On Tue, 18 Nov 2003 11:42:27 -0600, "Larry Serflaten"
<Fi******@RiskOfBeingSpam.med> wrote:
"Grant from GD Technologies" <gr***@gdtech.ca> wrote
I am having trouble getting the MousePointer method working.
I am using
frmMain.MousePointer = vbHourglass
...
frmMain.MousePointer = vbNormal

The pointer does not change. If I put a msgbox before the call it works
fine. Is my code going to fast? Does windows need to be Paused?

Yes, changing the mouse pointer is a very low priority task. Issue several
DoEvents right after changing it, or issue a few (sparingly) in your code.

Either, and sometimes both are needed. Try it and see....


.... and forcing an update of the mouse by moving it by a pixel ...
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
1
by: Harald Weiser | last post by:
Good morning everybody. I would like to know if it is possible to move the mousepointer to another location with Javascript? For example Mouse.jumpTo(x,y) THX Harry
7
by: lauren quantrell | last post by:
A while back I got a requirement for the client to be able to adjust the relative heights of two subforms by click-dragging the mouse and I came up with a kludge solution using a border control...
2
by: Imran | last post by:
Hi I am using an aspx page and on a button click, i want to access mousepointer. Any ideas on how to do it ? I can't access System.Windows as its a webform Thanks
6
by: Stefan Mueller | last post by:
With document.body.style.cursor = "wait"; I can set the hourglass and with document.body.style.cursor = "default"; I can set the MousePointer back. That works great. But if I do...
0
Mauro
by: Mauro | last post by:
Hi! Could someone help me? Where can I find Hyperlink mouse pointer (hand)?
10
by: Esmael | last post by:
Hi to all, /*****************************/ OS-WIn XP SP2 VB6 SP6 /*****************************/ Is their anyone who can help me with this: Source code written on VB6.
1
by: Aniket Singh | last post by:
hi, I am doing a project in asp with vb script in my project i am using a dll which has basic functionality like zoom in, zoom out, panning, scrolling etc and now i want to give information of...
1
by: Ellie | last post by:
Hi, I'm trying to have the mousepointer change to the link pointer when the Div onmouseover event is fired. Is there a way to do this? Thanks Ellie
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.