M
minimega
Hello to all NG,
I've a class that manage the OpenNETCF.ButtonEx control. I add the
control to myForm, then via code I use myClass.Add(buttonEx) and my
class manage all the graphics layout, color, mouseover/mouseexit events
and so on. In myForm I subscribe the .Click event to get events from
the button, however, when the control has the focus and the user press
the Enter/SpaceBar key I want to get the KeyPress event as a Click
event. Now, I'm thinking to manage the .KeyPress event in myClass (so
is valid for ALL the forms that use that class), but I've the problem
to "translate" then KeyPress event (subscribed and raised) in myClass
to Click event (sibscribed and raised) in myForm. There is a way to do
this (using Reflection??)
Thanks,
Massimo
I've a class that manage the OpenNETCF.ButtonEx control. I add the
control to myForm, then via code I use myClass.Add(buttonEx) and my
class manage all the graphics layout, color, mouseover/mouseexit events
and so on. In myForm I subscribe the .Click event to get events from
the button, however, when the control has the focus and the user press
the Enter/SpaceBar key I want to get the KeyPress event as a Click
event. Now, I'm thinking to manage the .KeyPress event in myClass (so
is valid for ALL the forms that use that class), but I've the problem
to "translate" then KeyPress event (subscribed and raised) in myClass
to Click event (sibscribed and raised) in myForm. There is a way to do
this (using Reflection??)
Thanks,
Massimo