473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

can't invoke an internal method

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",Bin dingFlags.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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
1 3747
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.

"tolisss" wrote:
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",Bin dingFlags.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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris F Clark | last post by:
In our C++ project we have some internal bug reporting macros that we use to get useful information when the program does something unexpected. Essentially at the point of the error, we invoke an...
0
by: tolisss | last post by:
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
15
by: jon | last post by:
How can I call a base interface method? class ThirdPartyClass :IDisposable { //I can not modify this class void IDisposable.Dispose() { Console.WriteLine( "ThirdPartyClass Dispose" ); } } ...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
16
by: recover | last post by:
#include <string> #include <iostream> using namespace std; class TConst { private: string con; string uncon; public:
37
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as...
7
by: Sin Jeong-hun | last post by:
I've using thread a lot in C#, but all of them were just single method with no return value or paramenters. It may sound bizarre but, can't it be a class? I'm writing an Windows application that...
9
by: Jon Davis | last post by:
The following code runs fine. I let it go several thousand times and then killed it. private void button1_Click(object sender, EventArgs e) { int i = 0; string opOutput = "n/a"; while (true)...
3
raveendrabikkina
by: raveendrabikkina | last post by:
3087 / 3126 02/25 10:42:08 info Recovering 1 session(s) 3088 / 3126 02/25 10:42:08 warning Deployer Service failed to deploy file:/opt/jrun4/servers/cpbepost/logs/ 3089 / 3126...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.