473,468 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating Hot-keys (shortkuts) functionality

I have a two datagrids on a page and I want to use ALT+A and ALT+Z to move
from the first row in one grid to the firstrow on the other with thes
kombinations..

I trired KeyDown Event but I only seem to be able to catch ONE key.. with
the system.Windows.Forms.KeyEventArgs

regards
/Lars Netzel
Nov 20 '05 #1
2 1148
* "Lars Netzel" <[stop_spam]@host.topdomain> scripsit:
I have a two datagrids on a page and I want to use ALT+A and ALT+Z to move
from the first row in one grid to the firstrow on the other with thes
kombinations..

I trired KeyDown Event but I only seem to be able to catch ONE key.. with
the system.Windows.Forms.KeyEventArgs


If you are not required to use Alt+* and you can use Ctrl+*, just define
a hidden main menu and add the code to the menu items' 'Click' event handlers.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Thats a good idea, but I still need to have it completely dynamic.. I'm
later construktiona Customized Hotkeys funktion where the users will be
abel to choose whatever combinations they want for shortscuts. So i'm
definately required to make ALT key work.

/lars
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> skrev i meddelandet
news:2i************@uni-berlin.de...
* "Lars Netzel" <[stop_spam]@host.topdomain> scripsit:
I have a two datagrids on a page and I want to use ALT+A and ALT+Z to move from the first row in one grid to the firstrow on the other with thes
kombinations..

I trired KeyDown Event but I only seem to be able to catch ONE key.. with the system.Windows.Forms.KeyEventArgs
If you are not required to use Alt+* and you can use Ctrl+*, just define
a hidden main menu and add the code to the menu items' 'Click' event

handlers.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3

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

Similar topics

3
by: JB | last post by:
We have a SQL Server 7.0 database running with trunc. log on chkpt and select into/bulkcopy checked and need to develop a backup strategy. One of our DBAs insists that since the transaction log...
3
by: Rakesh | last post by:
Hi, I was 'googling' to look out for some ways of optimizing the code and came across this term - 'hot / cold splitting'. In short, the discussion is about splitting heavily accessed ( hot )...
20
by: My Internet | last post by:
Hello, I am in the process to define if our product can use PostgreSQL. Do you know what type of application use PostgreSQL, and also what is the size of the database for these projects? ...
1
by: antipode | last post by:
That's about it. If I make a cursor of any size and color depth, the button to set the hot spot stays disabled. I'm at my wit's end, and yet I know it's got to be something stupid I'm missing.
0
by: BobAchgill | last post by:
I stumbled across a way to make buttons transparent. Which means its possible to use a button to be a "hot spot" (if a square hot spot is what you need) I found the answer waiting in a very...
0
by: gregory_may | last post by:
I apologize for cross posting, but I don't know the best place to post this. This link is a pretty good overview of the various System Cursor routines....
1
by: code | last post by:
Hi Grp http://www.books-download.com/?Book=1493-PHP+Hacks+%3a+Tips+%26+Tools+For+Creating+Dynamic+Websites+(Hacks) Description Programmers love its flexibility and speed; designers love its...
0
by: yasker | last post by:
Hi, all I'm developing an application that needs to pop up when the user presses a global hot key. I followed instruction using Win32 API RegisterHotKey. It works fine at first, but what's the...
6
by: mohit.akl | last post by:
hey guys I got trouble implementing hot toolbar like intertnet explorer in my win forms. Could someone please give me ideas... thanks
8
by: Andrus | last post by:
Code below causes error in class definition line .....Isolator<T>' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. 'Myapp.Isolator<T>.GetEnumerator()'...
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
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
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
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.