473,382 Members | 1,377 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,382 software developers and data experts.

.NET method NOT intended to be used in developer's code

Hello. I am trying to find how I can call the method below.

http://msdn.microsoft.com/library/de...cNameTopic.asp

I cannot call this method by simply creating the AccessibleObject object. If
I create a class like below and try to call the method through
myAccessibility, I still cannot call it.

public class myAccessibility : AccessibleObject.IAccessible{

}

If you know how I can call it, can you drop a line?

Thanks!

Tomtom
Nov 16 '05 #1
3 1016
TomTom wrote:
Hello. I am trying to find how I can call the method below.

http://msdn.microsoft.com/library/de...cNameTopic.asp
I cannot call this method by simply creating the AccessibleObject
object. If I create a class like below and try to call the method
through myAccessibility, I still cannot call it.

public class myAccessibility : AccessibleObject.IAccessible{

}

If you know how I can call it, can you drop a line?


It's private, thus the only way to do that is using reflection.

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 16 '05 #2
Thanks!
How can I use reflection to call the private members? If you have a good
search term, can you let me know?

"Joerg Jooss" <jo*********@gmx.net> wrote in message
news:OB**************@TK2MSFTNGP11.phx.gbl...
TomTom wrote:
Hello. I am trying to find how I can call the method below.

http://msdn.microsoft.com/library/de...cNameTopic.asp

I cannot call this method by simply creating the AccessibleObject
object. If I create a class like below and try to call the method
through myAccessibility, I still cannot call it.

public class myAccessibility : AccessibleObject.IAccessible{

}

If you know how I can call it, can you drop a line?


It's private, thus the only way to do that is using reflection.

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 16 '05 #3
TomTom wrote:
Thanks!
How can I use reflection to call the private members? If you have a
good search term, can you let me know?


As usual, MSDN is a good place to get started:

http://msdn.microsoft.com/library/de...onOverview.asp

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 16 '05 #4

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

Similar topics

31
by: Chris S. | last post by:
Is there a purpose for using trailing and leading double underscores for built-in method names? My impression was that underscores are supposed to imply some sort of pseudo-privatization, but would...
19
by: Pete | last post by:
I have form/select which executes a function using onchange. No problem. However, when I validate the page with a strict HTML 4.01 doctype at http://validator.w3.org, it demands either an action or...
0
by: Cordell Lawrence | last post by:
Okay guys, We are wondering if this is a bug in Framework 2.0.40607 and looking for some clarification on the issue. Take a look at the folowing code. public delegate bool BoundryTest(int...
6
by: Teresa | last post by:
1) If I do want to keep an object alive throughout the live of an application, how can I ensure that the GC doesn't clean it up? 2a) How do I determine if an object is a managed or an unmanged...
1
by: BenS | last post by:
Good Morning and Happy Wednesday! I've got a web service that exposes a method that takes an string input parameter that specifies an executable on the server that starts a process. These...
5
by: MLH | last post by:
I use a fair number of debug.print statements. My apps are fairly well 'peppered' with them. I've often wondered if leaving them in the mdb, creating and rolling out an mde intended for use in the...
22
by: WXS | last post by:
Sometimes a method in a class requires the use of class instance variables/fields that will not be used outside of the method itself. Currently this means you must create a instance field in the...
11
by: eBob.com | last post by:
I have this nasty problem with Shared methods and what I think of as "global storage" - i.e. storage declared outside of any subroutines or functions. In the simple example below this "global"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.