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

Hotkeys stops working

I have a program that uses Hotkeys! And they works just fine!

I use this hotkeylib:
http://www.vbaccelerator.com/home/NE...FormLib_cs.asp

But my hotkeys suddenly stops working when i use this:

ShowInTaskbar = false;
And it only stops working when i use that! I use it to send the program to
tray! And when it's in tray i really want the hotkeys to work!

Can anyone tell me why this is happening?

Regards, Martin
Nov 16 '05 #1
2 2074
Martin Hjärtmyr wrote:
I have a program that uses Hotkeys! And they works just fine!

I use this hotkeylib:
http://www.vbaccelerator.com/home/NE...FormLib_cs.asp

But my hotkeys suddenly stops working when i use this:

ShowInTaskbar = false;
And it only stops working when i use that! I use it to send the program to
tray! And when it's in tray i really want the hotkeys to work!

Can anyone tell me why this is happening?


"ShowInTaskbar = false" triggers the recreation of the window handle
and the HotKey code above doesn't cope with that.

The library has to monitor the HandleCreated and HandleDestroyed
events of the form and reregister the shortcuts.

bye
Rob
Nov 16 '05 #2
Okay.. But how can I solve this then?

Regards, Martin

"Robert Jordan" <ro*****@gmx.net> wrote in message
news:ck*************@news.t-online.com...
Martin Hjärtmyr wrote:
I have a program that uses Hotkeys! And they works just fine!

I use this hotkeylib:
http://www.vbaccelerator.com/home/NE...FormLib_cs.asp

But my hotkeys suddenly stops working when i use this:

ShowInTaskbar = false;
And it only stops working when i use that! I use it to send the program
to tray! And when it's in tray i really want the hotkeys to work!

Can anyone tell me why this is happening?


"ShowInTaskbar = false" triggers the recreation of the window handle
and the HotKey code above doesn't cope with that.

The library has to monitor the HandleCreated and HandleDestroyed
events of the form and reregister the shortcuts.

bye
Rob

Nov 16 '05 #3

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

Similar topics

0
by: skumar | last post by:
I need to access the Tabpages by hotkeys "alt+P" in case of "Principals" as one of the Tabpage. Also i need to underline the word "P" in "Principals" so that user is informed about the hotkey.If...
2
by: Hasan Ammar | last post by:
Is it possible to set up hotkeys using onkeypress? I know it can be done with the usual alphanumeric keys, but what about function keys? or using ctrl/alt combinations? Does anybody have a...
1
by: Matthew Wells | last post by:
How do you prevent someone from using Ctrl+, (ctl + comma) or Ctl + . (Ctl + perios) to get to design view. I have all the normal properites turned off (Access special keys, F!!, etc) but nothing...
3
by: Matthew Wells | last post by:
I'm reposting because an idiot replied without reading the whole message. I've tried autokeys and it isn't working for this combination. Please read on. While in form view, how do you prevent...
3
by: Bernd Eichelsdorf | last post by:
Hi, I would like to add hotkeys to my webapp - it's running on a barcode scanner, that has got a number pad and the keys F1 - F4. I would like to add hotkeys, so that when the user presses F1,...
2
by: =?Utf-8?B?SXZvODY=?= | last post by:
Hi, I need ot set hotkeys to my windows application. I want when Word is thea active application and when user press "Ctrl+Alt+T" for example to start my action. I used RegisterHotKey and...
2
by: Justin | last post by:
So I have a keyboard hook that I have implemeted into my c# app. I need to not allow any hotkey actions to be performed when my app is opened. I can capture the key events and handle them if I want...
0
by: Octavius Khan | last post by:
How can I set system hotkey that will only work for specific applications. For example, I have a system tray application that uses hotkeys to perform certain tasks like placing text into a memo...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
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,...

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.