Hi, the id parameter in RegisterHotkey must be unique (your _Mod is not good); it is used internally to discriminate the different hotkeys; I once used the following code:
int chr=(int)name\[0\];
if (chr>=(int)'a' && chr<=(int)'z') chr+=(int)'A'-(int)'a';
// identifier must be unique, so we use a hash code
int ident=GetType().GetHashCode()+(modifiers<<16)+chr;
but that is just one attempt to get unique numbers for some command based on its name (some textual description) and the modifier keys (similar to Control.ModifierKeys) all inside a form. :)
Luc Pattyn
try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }