Google Patents Digitizer system with cursor shape changing as a function of pointer location on menu stripĭownload PDF Info Publication number EP0964327A2 EP0964327A2 EP99109656A EP99109656A EP0964327A2 EP 0964327 A2 EP0964327 A2 EP 0964327A2 EP 99109656 A EP99109656 A EP 99109656A EP 99109656 A EP99109656 A EP 99109656A EP 0964327 A2 EP0964327 A2 EP 0964327A2 Authority EP European Patent Office Prior art keywords tablet pointer menu digitizer area Prior art date Legal status (The legal status is an assumption and is not a legal conclusion. Google Patents EP0964327A2 - Digitizer system with cursor shape changing as a function of pointer location on menu strip (new 0964327A2 - Digitizer system with cursor shape changing as a function of pointer location on menu strip I have added the follwoing to the registraion> link temporarily to check the behaviour and it works perfectly. If you hover or click the Registration text it takes you to: I know where I need to put the disable in to get the desired result. Ok, forget my previous post as I have now sorted it. RE: Disable Menu Item RobHat (TechnicalUser) Does this mean that I would need to structure my code like this roughly:Īgain sorry if this seems a stupid question but c# is completly new to me however I need to get this disabled. I can see why this happened as the disable property has been placed inside the click event. This caused the Register menu item to change to disabled after being clicked. RegisterToolStripMenuItem.Enabled = false Private void RegisterToolStripMenuItem_Click(object sender, EventArgs e)įrmActivity newContact = new frmActivity() I have just as a test changed the code from: Thanks, I have had a look and sure enough the item i need to disable is called "RegisterToolStripMenuItem" as above. Once you have it, that is the name to use in code to disable or enable that specific menu item. You can click on the "Register" menu item and look at its name in the properties window. It should open the menu with all the mene options on it. To find out what that control's name is, in design mode, open the form and find the ContextMenuStrip and click on it once. What you want to do is disable the specific ToolStripMenuItem on your ContextMenuStrip. If you Enable/Disable the ContextMenuStrip then the whole right click menu will be disable (which is what I think you did). You can access each of these control properties directly in your code and choose to enable or disable them. Each menu item you see there is a ToolStripMenuItem. If you open NotePad and just right click anywhere in the program, you get menu that looks like this:Īnd probably some more that I don't need to list. Not too sure what yours looks like (as far as what menu items are there) but I'll take a basic Windows right-click menu as an example. So a right click menu must consist of at least 1 ToolStripMenuItem. They are the menu items that you see when you right click. This is where the ToolStripMenuItems come in. So if you put a ContextMenuStrip on your form and assign it to a control, it won't work because there are no menu items in it to display. The ContextMenuStrip is the placeholder for all the right-click menu options to appear. A right click menu is made up of 2 controls really a ContextMenuStrip control and a ToolStripMenuItem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |