Link to home
Start Free TrialLog in
Avatar of dabellei
dabellei

asked on

Getting the lis tof method from a Class

How can we get the list of method from a class when using this class inside an application?

Class A  have three method

methodA
methodB
methodC


in the application I want to list those method when the program is running, and display those function (method name) on buttons, how can I do that?
Avatar of COAtheGREAT
COAtheGREAT
Flag of Serbia image

PING...
Avatar of RAJz
RAJz

first make the class EXE.
if U dont know how make exe then reply me.

then
open a new project and then click the project from menu u will see the refernce option, then click on the reference and click browse, now give the path of or ur EXE file where u placed it. if it is on server then give the full path of server.

now run the application.

if ur class name is A then
u will access the the method by

A.methodA
A.methodB
A.methodC

I hope it will hepls u out.


RAJz
Avatar of dabellei

ASKER

I know I can access them this way what I need is to get a list of all them without knowing them I want to list them on the screen?

first create an object of ur class.

like
dim BClass as new A

then write
bclass.
when u will press dot it will show all the methods and atributes of ur class.


If ur question is something else then plz give me the detail descrition
ok wha tI need is to give a list of all methods to a user, he does not have access in developpement mode he is in run time mode so he can't type a.  it has to be all in the programm itself.  I need to get the list of all the method name and put them in a list box.
dabellei:

You should reject RAJz's answer so that your question appears on the normal list of questions, that way other experts will be more likely to look at it. This is an often asked question here and there is an answer where you use some tlb, but I don't remember which. I am sure one of the other experts will be able to help you.

Zaphod.
Avatar of Richie_Simonetti
ASKER CERTIFIED SOLUTION
Avatar of Richie_Simonetti
Richie_Simonetti
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for "A" grade.
Well If I got the right answer ;-)