iam trying to write a code for when caps lock is on tooltip display.
i want total code in c#.
Code for caps lock on tooltip dispay
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Master BillaRank #2,229 · 630 reputationPosted Sep 11, 2009, 8:42 AM EDT
Yes you can write a global function and work with P/Invoke to get caps lock is on/off.
Just copy this code add one ur main class and call where u need.
[DllImport("user32.dll", ExactSpelling=true)]
internal static extern ushort GetKeyState(uint nVirtKey);
internal const byte VK_CAPITAL = 0x14;
if(0 != (GetKeyState(VK_CAPITAL) & 1))
{
// do whatever here
}
http://www.codeproject.com/KB/system/NetKeyLogger.aspx?msg=2653396
Thank you
Pramod Kumar NandagiriRank #6,963 · 252 reputationPosted Sep 11, 2009, 10:35 PM EDT