simulate a Window action

  • Thread starter Thread starter Andrew Chen
  • Start date Start date
A

Andrew Chen

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
OnRowHeaderClicked(...))?
 
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.
 
Back
Top