can't invoke an internal method

T

tolisss

Hi

there is a method at an external assembly that i want to invoke with
signature

internal void RaiseKeyUp(KeyEventArgs e)

and i m trying like

gridView.GetType().InvokeMember("RaiseKeyDown",BindingFlags.Instance|Bin
dingFlags.InvokeMethod|BindingFlags.NonPublic,
null,gridView,new object[]{eventArgs});

but i alsways get the message that the method does not exists. AnyOne
know how to invoke that method?

thnks
 
G

Guest

Your method is called RaiseKeyUp, and you call it with "RaiseKeyDown".

If that doesn't work I wouldn't know the answer. Perhaps it has something to
do with that fact that it is internal?

TT.
 

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

Top