TheSwamp

Code Red => .NET => Topic started by: Jeff_M on August 23, 2013, 06:40:48 PM

Title: Using HotKeys with a PaletteSet
Post by: Jeff_M on August 23, 2013, 06:40:48 PM
Attached is a VS2010 C# project with a Usercontrol which is used on a PaletteSet. I'm trying to get a hotkey to click a button on the Usercontrol while the command is in the middle of waiting for the user to get an entity. For the test code here all I am doing is creating the basic objects and have the hotkey setup to display a MessageBox. Everything appears to work except for the hotkey part. I can't use the UserControl's Keypress since the palette & control do not have focus.

Anyone have any ideas on how to get this working? This is a continuation of a thread I originally started on the Autodesk .NET forum, but it has had no responses.
Title: Re: Using HotKeys with a PaletteSet
Post by: Jeff_M on August 24, 2013, 03:17:18 PM
Well that was easy, although I could've sworn I had tried it initially. By changing the object from the paletteset to the usercontrol when passing the Handle to the constructor it now works as desired.
Title: Re: Using HotKeys with a PaletteSet
Post by: nobody on August 27, 2013, 06:39:52 AM
This is cool. Thanks Jeff!