Private Enum HotkeyModifier
None = 0
Alt = 1
Ctrl = 2
Shift = 4
Win = 8
End Enum
Using this I can work out the modifier for Ctrl and Alt being pushed
(1 + 2). However, if I was given a value (e.g. 7), how would I extract
the individual modifiers used?
i.e.
7 -> Alt + Ctrl + Shift
5 -> Alt + Shift
...etc. Thanks again!
\\\
If CBool(Value And HotkeyModifier.Alt) Then
...
End If
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>