Hi,
Can you help me with making a call to mapbasic code from a .net created context menu? I have been looking at the CustomizeMapMiniToolbar sample, which I've now referenced from my existing mapbasic app. I've been able to modify the context menu to add my own buttons, and have no problem in calling MIPro commands such as 101 M_FILE_NEW. What I've not been able to do is to make it call any of my own exiting mapinfo subs. I've tried
addValidationButton.CommandId = 5800;
where 5800 is the ID assigned to the menu by my legacy mapbasic code.
I've also tried implementing a delegatecommand but this does not appear to fire.
Thanks
------------------------------
Paul Brignall
DRILLING INFORMATION LTD
GLOS
------------------------------