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

Mouse hides while typing -- Forcibly show it

Hi,

I have a ComboBox in a Windows app (.net2.0). And when users start typing
into it, the dropdown populates itself from a webservice and gives relevant
options under it... But the mouse hides itself, os its very hard to know what
you are selecting.

The reason for mouse hiding itself is because in Control Panel >Mouse >>
Pointer Options >[x]Hide pointer while typing is checked.

If I uncheck it, it works fine, and I can see the mouse. But I can't tell
all my users to uncheck it while installing my product.

I tried looking at the registry changes (regmon.exe) that happen when it is
unchecked, but didn't figure out what reg key was responsioble for this
change... Is there any API call that might help me in this situation.

Kindly Suggest.

Thanks!
Nov 5 '08 #1
2 3717
Rajneesh,

I would recommend not doing anything. It's not the place of your app to
override the settings of the user or the machine. Basically, they have
selected that they don't want the pointer when they are typing, so respect
it.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rajneesh Narain" <Ra************@discussions.microsoft.comwrote in
message news:2B**********************************@microsof t.com...
Hi,

I have a ComboBox in a Windows app (.net2.0). And when users start typing
into it, the dropdown populates itself from a webservice and gives
relevant
options under it... But the mouse hides itself, os its very hard to know
what
you are selecting.

The reason for mouse hiding itself is because in Control Panel >Mouse >>
Pointer Options >[x]Hide pointer while typing is checked.

If I uncheck it, it works fine, and I can see the mouse. But I can't tell
all my users to uncheck it while installing my product.

I tried looking at the registry changes (regmon.exe) that happen when it
is
unchecked, but didn't figure out what reg key was responsioble for this
change... Is there any API call that might help me in this situation.

Kindly Suggest.

Thanks!

Nov 5 '08 #2
Hello,
But the mouse hides itself, os its very hard to know what you are
selecting.
Is there any API call that might help me in this situation.
I'm on the same lines as Nicholas, that this setting is a system-wide
setting, and you should respect the user's preference, and not set it
yourself. However, it could be argued that not so many users are aware of
the setting, and know where to change it.

That said, I can think of certain situations where you might want to help
the user change this setting, for example by providing help text, or making
it a hint during application install, for example.

But yes, you can change this setting programmatically. The features is
called "mouse vanish" internally, and you can use the SystemParametersInfo
Win32 API function with the SPI_SETMOUSEVANISH flag to set this option on or
off. But be warned: you must not do this without the consent of the user, as
this affects all applications, not just yours.

See www.pinvoke.net for the function declaration if you need to call this
function directly from .NET code.

Good luck!

--
Regards,

Mr. Jani Järvinen
C# MVP
Vantaa, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Nov 5 '08 #3

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

Similar topics

8
by: Nolan Martin | last post by:
Is it just me or are there no good librarys out there to access the keyboard or mouse? I have been looking around for a while now and can only find ones that are bundled with a bunch of other...
7
by: fernandoronci | last post by:
Hi, I've been given the task of mantaining and fixing a website which I didn't design. I'm using Internet Explorer 5.5 and 6.x. Specifically, the problem is that navigation menues (written in...
6
by: scot_nery | last post by:
I got this working in all browsers but FF/NS. It's not picking up the event to find the mouse position. In a perfect world, you mouse over the link and a mouse bubble pops up. Thanks for help....
3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
6
by: GGerard | last post by:
Hello I have an Access 2000 form with the following properties: Record Source - Table1
1
by: John | last post by:
Hi all: I have an application that hides itself and displays an icon in the system tray. Is it possible for this application to detect keystrokes and/or mouse movements while hidden/minimized....
2
by: KarenP | last post by:
In my Windows Forms application, while executing a process that takes some time, I am changing the cursor to the hourglass by setting Cursor.Current = Cursors.WaitCursor. This is working just...
3
by: Tam | last post by:
Hi group, Workin on a pet project where I want to be able to kill the mouse (or even hiding it would do, as long as its unusable) then be able to bring it back. Being able to do the same to the...
22
by: schneider | last post by:
I need to hook the system mouse down event. I'm trying to replicate how a context menu hides when the mouse clicks outside of the control. Thanks, Schneider
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.