Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Is there a way to determine all of a class's methods?

Posted on 2004-11-01
Medium Priority
Last Modified: 2010-04-23
I have a drop down box I would like to populate with the names of all methods in a public class. Is there a way to loop through a class's methods?
Question by:BASESLydia
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 70

Expert Comment

by:Éric Moreau
ID: 12469824
A hint: You need to use Reflection.

Accepted Solution

Glom earned 1000 total points
ID: 12474443
Hi !
Try this :

        Dim ObjectType As Type = GetType(**THE NAME OF YOUR CLASS **)
        Dim MI As Reflection.MethodInfo
        For Each MI In ObjectType.GetMethods()
            If MI.IsPublic Then
            End If


Author Comment

ID: 12474639
Excellent! I appreacite the hint emoreau, but Glom's code works without me having to make any guesses!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

610 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