473,804 Members | 3,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5044

"Sha Crawford" <sh**********@h otmail.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.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(ByVa l 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******@pcdata sheet.com
www.pcdatasheet.com
"Sha Crawford" <sh**********@h otmail.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.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
22756
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 following are the problems and I hope that there is someone who can enlighten me or give me some pointers. Also, my testing code is attached at the end. And please don't ask me why I am doing this - it is one of functional requirements by all...
4
9050
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 so that the people who visit the web page see a neon arrow (example) as opposed to what they see now (which is the white arrow) Any Ideas? Its driving me batty. Many thanks
11
4198
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 me an example of something hidden from the user?
5
7969
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) } document.onmousemove=mousePos; Seems to do fine on many browsers.
3
14149
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 receiving MouseMove updates -- whether the pointer is over the form or not (this being the crucial part) -- until the next MouseDown. It's easy to receive MouseMove events while the pointer is over the form but not when the pointer leaves. (Forms...
0
1146
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 cursor is distracting to some of the these users. The only time the mouse will ever be needed is if the mgr remotes into the station and activiates the management form. When he exits, the station reboots and reloads the app. If it is only...
9
18205
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 area. While this DIV is displayed, they can close it by clicking the close button on the DIV. During the time this DIV is visible though, I don't want them to be able to scroll (and they usually can scroll because the page itself is typically...
2
2737
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 network. Upon completion of these steps, the mouse pointer will return to it’s default style and the program will exit. any one have any idea how to display a Hour Glass Mouse Pointer? and when that settings starts coping to another computer, how can we...
10
10489
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 show another field (textbox) when the mouse pointer goes over the checkbox, and make it not visible when the mouse moves away from it. My problem is that when I make the textbox diseappear, if the user set focus on it and moves the mouse away, Access...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10562
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10303
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.