473,320 Members | 2,012 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,320 software developers and data experts.

Hiding mouse pointer

How do I hide the mouse pointer in a particular MS Access form?
Thanks.

Sha Crawford
www.sha-crawford.co.uk

Nov 13 '05 #1
2 4970

"Sha Crawford" <sh**********@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
How do I hide the mouse pointer in a particular MS Access form?
Thanks.

Sha Crawford
www.sha-crawford.co.uk


Hiding the cursor may be a bit annoying and unexpected for your users. Have
you looked at opening forms modally so that you can't do anything else until
you've shut that form? For example, you wouldn't be able to move your
cursor to a menu or toolbar or open another form.
If you really need to do it, paste the following into a new module. Then you
could call HideTheCursor when the form opens and ShowTheCursor when it
closes. You could also look at clipping the cursor, where restrict the
mouse to a fixed rectangle using co-ordinates you supply (I have given some
arbitrary values).
' ***********************************
Option Compare Database
Option Explicit

Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type

Declare Function ClipCursor Lib "user32" (lpRect As Any) As Long
Declare Function ShowCursor& Lib "user32" (ByVal bShow As Long)

Public Sub ClipTheCursor()

Dim rec As RECT
Dim lng As Long

With rec
.Top = 100
.Left = 100
.Bottom = 400
.Right = 400
End With

lng = ClipCursor(rec)

End Sub

Public Sub UnclipTheCursor()

Dim lng As Long

lng = ClipCursor(ByVal 0&)

End Sub

Public Sub HideTheCursor()
Call ShowCursor(0)
End Sub

Public Sub ShowTheCursor()
Call ShowCursor(-1)
End Sub
' ***********************************


Nov 13 '05 #2
You could add an unbound textbox with 0 width and set the focus to that
textbox.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Sha Crawford" <sh**********@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
How do I hide the mouse pointer in a particular MS Access form?
Thanks.

Sha Crawford
www.sha-crawford.co.uk

Nov 13 '05 #3

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

Similar topics

9
by: punkin | last post by:
I am trying to catch mouse position on the entire screen by dynamically generating mouse click event at every 100 ms. My code only works for IEs but not any Netscape or Gecko-based browsers. The...
4
by: Videos 4 Sale | last post by:
Would you know how to change the look of a mouse pointer on a web page. On the page I have the mouse pointer is exactly as I have at work.... white. But what I want to do is change the look of it...
11
by: Lorenzo Villari | last post by:
I premise I don't know C++ well but... I wondered what is this data hiding thing... I mean, if I can look at the header (and i need it beacuse of the class), then what's hidden? Can someone give...
5
by: gsb | last post by:
I track the mouse location like this code: function mousePos(e) { var p = new Object(); if(e) { p.x = e.pageX; p.y = e.pageY; } else { p.x = event.x; p.y = event.y; } ... (show) }...
3
by: Jason | last post by:
I'm trying to implement some pretty basic behavior in c#/.net 1.1 Forms but can't seem to find all the requisite pieces. When a user clicks on the background of the form, I want the app to start...
0
by: Crimsonwingz | last post by:
Is it possible to selectively hide and show the mouse pointer from within access. I have several kiosk stations setup where there is NO mouse or keyboard, only a scanner and a number pad. The...
9
by: dd | last post by:
Does anyone have a cross-browser solution for hiding scrollbars and/or disabling scroll for the whole page? When the user clicks something, I want to display a DIV that fills the whole client...
2
by: remya1000 | last post by:
i'm using VB.NET. when a button is clicked the utility will display an hour glass mouse pointer, and it will begin copying the Utility settings from one computer to another computer on the...
10
daoxx
by: daoxx | last post by:
Hello I've searched, posted and solved this (Thanks for helping!), but now it came back to bite me in the *ss. I have a Yes/No field that is represented by a check box in my form1. I want to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.