• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 587
  • Last Modified:

Warning When Caps Lock when entering password

The default when entering into a password field in XP is to receive a bubble warning if the "caps lock" key is active. Somehow, this has been disabled. The field still echoes asterisks.
How can the default behaviour be restored?
0
BeaconSoftware
Asked:
BeaconSoftware
  • 2
  • 2
1 Solution
 
WikkardCommented:
This is default behavior in the windows login screen and other windows screens not the textbox control.
This behaviour isnt coded into the textbox control in visual studio. You would need to implement this functionality yourself.

0
 
BeaconSoftwareAuthor Commented:
I believe that if the "Password" property of a text box is set to true, not only is the input echoed as asterisks, but a warning bubble is shown when the CAPS LOCK key is on.
Somehow, I have managed to disable the warning bubble (tooltip) and I would like to restore it.
0
 
MelangeCommented:
This is indeed the correct behavior of the edit control in XP and above. If it doesn't happen in your edit control, then you might not have the correct manifest settings. It requires version 6 and above of the common controls library (which requires the application manifest).
The following code placed in the stdafx.h file works for me. This is the default code placed by VS2005 for new projects.

#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif

Open in new window

0
 
MelangeCommented:
Another possibility (if you are using the correct manifest) may be that you have inadvertently swallowed up the EM_SHOWBALLOONTIP message for the edit control.
0
 
BeaconSoftwareAuthor Commented:
Thanks Melange, your manifest change is the solution. (The code was in stdafx.h but inoperative because of a define not made).
In this app, there was no chance of any messages being swallowed
 
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now