Creating a command dynamially at run time

Discussion created by cpicciri on Aug 19, 2010
Latest reply on Aug 23, 2010 by cpicciri

I need to be able to create several commands dynamically at run-time and add them to menus and forms on an exisiting toolbar. Can someone point me in the right direction, perferably with an example?

I've been fighting with this problem for over a month now and not getting anywhere with it. I have been able to create menus and submenus at run time and adding them to my existing toolbar but creating a command at run time escapes me.

Thank you for your time,