simulate a Window action

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Chen

    simulate a Window action

    How do you simulate an action on a Control, such as
    clicking a row header, by calling a function that is
    protected inside a class (i.e. protected void
    OnRowHeaderClic ked(...))?
  • Roy Osherove

    #2
    Re: simulate a Window action

    You need to either:
    1. derive your own class from that control you want to manipulate
    2. use reflection to call those protected methods. Reflection allows
    you to call even private members of classes. Pretty powerful stuff.

    ---
    Regards,

    Roy Osherove


    On Fri, 7 Nov 2003 19:05:33 -0800, "Andrew Chen" <newnauk@hotmai l.com>
    wrote:
    [color=blue]
    >How do you simulate an action on a Control, such as
    >clicking a row header, by calling a function that is
    >protected inside a class (i.e. protected void
    >OnRowHeaderCli cked(...))?[/color]

    Comment

    Working...