can't invoke an internal method

  • Thread starter Thread starter tolisss
  • Start date Start date
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
 
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.
 
Back
Top