Imaginecorp
IS-IT--Management
There has to be a better way...
I Know when a Hot Key (\<) is put on a label, and when "ALT+<<character>>" is pressed, the focus gets passed to the next control in the tab order.
I need the Click() Event of the label to fire when the “Hot Key” is used.
One way to circumvent this label default behavior, I have created a container class with a label and a command button. The command button is set to "Invisible", its Gotfocus() fires its click event. (The label, if clicked will fire the command buttons Click event)
This does what I want it to do, but is there something, someone here has done, a little bit more elegant and am I correct in my assumption of the label default behavior?
Any and all ideas will be greatly appreciated… Thanks
I Know when a Hot Key (\<) is put on a label, and when "ALT+<<character>>" is pressed, the focus gets passed to the next control in the tab order.
I need the Click() Event of the label to fire when the “Hot Key” is used.
One way to circumvent this label default behavior, I have created a container class with a label and a command button. The command button is set to "Invisible", its Gotfocus() fires its click event. (The label, if clicked will fire the command buttons Click event)
This does what I want it to do, but is there something, someone here has done, a little bit more elegant and am I correct in my assumption of the label default behavior?
Any and all ideas will be greatly appreciated… Thanks