One way you can do this is to derive the child form class. In your derived
class, add a public member, MyKeyPress, that accepts a keypresseventargs
variable. In this public method, call the protected OnKeyPress method
passing the arg. Then this public MyKeyPress method can be called from
anywhere the form object is known. (I think you can also use reflection to
access protected members, but exposing a public member in a derived class is
probably more straight-forward if you can derive the class.)
====================
Clay Burch, .NET MVP
Visit www.syncfusion.com for the coolest tools
> Hi,
>
[quoted text clipped - 4 lines]
> Thanks & REgards
> CV