How to call a dynamic function from Dynamic Menu?

  • Thread starter Thread starter tsair
  • Start date Start date
T

tsair

I create a dynamic menu from a data table, pass the event handle menu_click
to menuitem.

How do I call a function or a new Form1 during runtime when the Menu_Click
event fire and locate the function call from the data table ?

example.:
cfunc = datatable.function_store
then, execute the cfunc

thank you.
 
Hi tsair,

System.Reflection should be able to do what you need.
You can create a method call from a string using MethodInfo.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top