473,224 Members | 1,324 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,224 software developers and data experts.

capturing CmdKey input to floating windows from within the main form.


I have an IDE style editor based on the WeifenLuo.WinFormsUI.Docking
code, wich I must say seems realy good.

Im trying to activate drop down menus and such from various
special command key such as the windows apps key,
and then do something like build up a context menu using
reflection and picking items in the chain of windows and parent windows
wich have a member with my custom ContextMenuAttribute with
the apropriate key setting. im already using the mouse right
key for something else. (its used to pan the 3d scene with mouse movement)

a quick skeleton test works fine, the main Form ProcessCmdKey function fires
when the
apps key is presed in any window and can build and display a short test
however when I make one of the windows floating this function in the main
form no longer

does anyone know how to intercept such events in one place so it captures
cmd key input from any window floating or not ?

Or maybe theres a better way to acheive what im doing ?

basically I want to be able apply an attribute to any member in a class
with a window or its parent and have that item show up in a menu when
specified input occurs.
this might be a bool or an editbale type or another menu etc.

I cant very easily make all my window classes inherit a custom class
wich then inherits Control, as im using this windows from this library
wich have many layers before they inherit control.

I could modify the source but id rather not if neccesary.

Colin =^.^=
Jun 27 '08 #1
0 1273

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

Similar topics

by: lawrence | last post by:
I've this function, which is the method of a class. I'm posting the constructor of the class down below. For some reason, when I fill out a form and hit submit, I'm not getting any values. Can...
by: Oz | last post by:
This is long. Bear with me, as I will really go through all the convoluted stuff that shows there is a problem with streams (at least when used to redirect stdout). The basic idea is that my...
by: jerrygarciuh | last post by:
Hello, I have been playing with various Googled solutions for capturing the <Enter> key to suppress form submission. My first question is whether anyone has a script that works in all common...
by: jacobryce | last post by:
I sent this post out a couple weeks ago and received no response, so I'll try again... I'd like to create a windows MDI in VS 2005 C# that will allow child windows to have the same options and...
by: Andrew | last post by:
Hi, I have a messagebox that pops up due to an event. I did it in javascript. ie. alert("Time's up. Assessment Ended"); I want to capture the OK and Cancel events of this alert messagebox. My...
by: pat.maher | last post by:
I have an application that is not an mdi but rather made up of multiple sdi forms. I am trying to keep a single set of menus and toobars that change contents depending on the form that has...
by: MLM450 | last post by:
I have a control that handles the KeyDown event but it does not seem to execute when a combination of keys is pressed - like CTRL+Z. If I press CTRL, it executes. If I press Z, it executes. But the...
by: developer2007 | last post by:
Hi, Im trying to develop and application that would will require the process ID as an input and then grab the image of the window save it as bmp. I have tried number of approaches like using...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.