Question Create Tutorial For .net Form-Simulating menu clicks

JulesM

New member
Joined
May 18, 2010
Messages
2
Programming Experience
1-3
Hi,

I am trying to create a tuturial within my software in vb.net. The code will take the current mouse position, move it over the relevant menu header (e.g. file) and click, move to relevant item (e.g. New) and click etc.

There does not appear to be a raiseMouseEvent for the menu items so I cannot get the mouse to click the "FileMenu" ToolStripMenuItem for instance. Neither does FileMenu.PerformClick seem to expand the menu when run in code.

I can fire the NewToolStripMenuItem.PerformClick but the menu structure is still hidden so the user cannot see what has happened.

Does anyone have any ideas?

Many Thanks,

Julian
 
Thanks

Thanks very much Matt,

The second link to the mouse_event user module was really useful and did the job.

I had seen references to mouse_event but not the code so thought it was a vb6 function!

Regards,

Julian

:D
 
Back
Top