HelpCursor on Menu

Hi all,

I need to enable context sensitive help in my application. For this when user clicks on a menu item( "Whatis this"), i would change the cursor to a help cursor.

I used

system.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Help

As this code did not help in changing the cursor, i modified the code to

Me.Cursor = System.Windows.Forms.Cursors.Help

This code indeed worked. But when i move the cursor over a item in the menu, it changes back to the default cursor.

Can someone tell me a way by which the cursor would remain as a help cursor irrespective of the item the cursor hovers over.

Thanks,

Sugan




Answer this question

HelpCursor on Menu

  • Joe Alt.

    That looks like a problem for the ToolStripMenuItem class. I couldn't find any way to do this. I suspect this is a design problem, HelpProvider provides help for controls but ToolStripMenuItem doesn't inherit from the Control class. Sorry, maybe somebody else out there knows a workaround...


  • michaelss

    No it does not have a cursor property. It does not seem like a normal control at all. Help properties in all control gets added when HelpProvider component is added to the form. But for a ToolStripMenuItem, these properties are not added.

  • Erick_RoCo

    does the menu have a cursor property



  • Burney

    You probably want to use the form's HelpButton property. Read this for details.


  • ChrisX

    I used helpbutton property also. What happens is, when i click on the help button, the cursor changes to help cursor.

    But when i move the cursor over the menu, it changes back to default cursor. When i move out of the menu items, cursor changes to help cursor. I enable context sensitive help based on the cursor that is present when the component is present. So i'm not able to show help for menu items as the cursor chages to default one when the mouse moves over them.

    What i understood from little practice is ; the help cursor remains as such when moved over components that have help enabled. If help is not enabled, cursor changes to default cursor. So i enabled help for all the components in the form. The problem is there is no showhelp property ToolStripMenuItem in the form. Hence i was not able to enable help. So when help cursor moves over it, changes to default cursor.

    In fact, i'm enabling help cursor in my application when user clicks on a menu item.

    Code used is

    Me.Cursor = Cursors.Help

     

    This does change the cursor, but the problem persists with the ToolMenuStripItem.

     

    Thanks for your help in advance,

    Sugan



  • VoiceOfExperience

    can someone write about the work around this issue. Is it really a bug in ToolStripMenuItem.



  • HelpCursor on Menu