473,406 Members | 2,259 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,406 software developers and data experts.

List all methods in Active X from C#

1
I come across this questions below in the forum, however there is no solution provided. I am also desparately looking for an answer to this exact same question. Anybody that could help would be very highly appreciated.

***********Original Message **********************

matthewr
Guest Posts: n/a
#1: Sep 5 '06

Hi,

I'm using C# to create an app which tests various ActiveX controls.
Given the ProgID of the ActiveX control I want to test and the location
of the .ocx file, how can I get a list of its methods, properties and
events?

Currently, I'm using:
Type T = Type.GetTypeFromProgID("<A Prog ID here>");
Object Control = System.Activator.CreateInstance(Type);
foreach (MethodInfo Method in Type.GetMethods())
{
MessageBox.Show(Method.Name);

}

The problem is that GetMethods returns this list:

GetLifetimeService, InitializeLifetimeService, CreateObjRef, GetType,
ToString, Equals, GetHashCode

instead of the public methods of the actual object.

If I use Type.InvokeMethod(), I can call methods on the control
satisfactorily, but I can't work out how to get a list of its
methods...

Thanks,
Matthew

*************Original Message End****************

Looking forward to your advice.
Thanks,
Chuah
Jul 22 '10 #1
0 985

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Grant Edwards | last post by:
I'm trying to figure out how to sort a list, and I've run into a problem that that I have tripped over constantly for years: where are the methods of basic types documented? The only thing I can...
0
by: Thomas Steininger via .NET 247 | last post by:
I'm currently trying to get a list of system users. In the msdn I found the follwing code: DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer");...
2
by: Marcio Kleemann | last post by:
Is there a way to get a list of the session id's for all currently active sessions for the application? Thanks
0
by: matthewr | last post by:
Hi, I'm using C# to create an app which tests various ActiveX controls. Given the ProgID of the ActiveX control I want to test and the location of the .ocx file, how can I get a list of its...
11
by: kudruu | last post by:
Hi, I am trying to find a way to populate a list of active Com ports on a computer. There may be around 30 on one computer and all connected to different Buses but I am looking for one in...
3
by: kudruu | last post by:
Hi, I tried posting this in comp.lang.C but need more specific help using winAPI. I am trying to find a way to populate a list of active Com ports on a computer. There may be around 30 on one...
2
by: Ora | last post by:
Hi all, Can any one help me in getting the list of users associated with a responsibility in Oracle Apps. Thanks,
0
by: Bierny | last post by:
Hi All! I am writting a small script that will find a parent pid and from this point find a parent of a parent in order to kill this last parent :-) I know it sounds stange (at least ... ) but...
0
by: s_erez | last post by:
Hi, I have an active directory group which I need to get a list of all groups it is a member of, using a C# code. I know how to do this for a user, however i have a problem getting this list for...
4
BeemerBiker
by: BeemerBiker | last post by:
I am using (v)10 of slickedit only because it was available and already paid for where I work. It correctly colors Perl code and shows module methods, but if I create a new module it does not know...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.