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.
 
Back
Top