Solved

Getting the lis tof method from a Class

Posted on 2002-04-16
12
170 Views
Last Modified: 2012-05-04
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?
0
Comment
Question by:dabellei
  • 5
  • 3
  • 2
  • +2
12 Comments
 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6945084
PING...
0
 

Expert Comment

by:RAJz
ID: 6945086
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
0
 
LVL 2

Author Comment

by:dabellei
ID: 6945167
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?

0
 

Expert Comment

by:RAJz
ID: 6945407
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
0
 
LVL 2

Author Comment

by:dabellei
ID: 6945488
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.
0
 
LVL 7

Expert Comment

by:Z_Beeblebrox
ID: 6946179
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6949142
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6949164
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6949178
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 100 total points
ID: 6949199
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7207885
Thanks for "A" grade.
0
 
LVL 2

Author Comment

by:dabellei
ID: 7209134
Well If I got the right answer ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now