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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top