Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 15 results for
shortcutkeys
- Page 1
Adding shortcutkeys at runtime
Programming
Software Development
8 Years Ago
by paul1145
… ToolStripMenuItem = New ToolStripMenuItem("Quit") filesubitem1.ShowShortcutKeys = True filesubitem1.
ShortcutKeys
= Shortcut.CtrlQ 'this errors at compile time fileItem.DropDownItems.Add…
Re: Adding shortcutkeys at runtime
Programming
Software Development
8 Years Ago
by Reverend Jim
… As New ToolStripMenuItem("Quit") fileQuit.ShowShortcutKeys = True fileQuit.
ShortcutKeys
= Shortcut.CtrlQ fileMenu.DropDownItems.Add(fileQuit) mainMenu.Items.Add(fileMenu…
Re: Adding shortcutkeys at runtime
Programming
Software Development
8 Years Ago
by djjeavons
… cast the shortcut key to System.Windows.Forms.Keys: filesubitem1.
ShortcutKeys
= DirectCast(Shortcut.CtrlQ, Keys) HTH
Type or Namespace Cannot Be Found
Programming
Software Development
13 Years Ago
by steven8579
…// this.mnuFileOpen.Name = "mnuFileOpen"; this.mnuFileOpen.
ShortcutKeys
= ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control …// this.mnuFileSave.Name = "mnuFileSave"; this.mnuFileSave.
ShortcutKeys
= ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control …
I dont want menuitem shortcut keys
Programming
Software Development
12 Years Ago
by splitter66
…This dont work. Even though I dont have any
shortcutkeys
it automatically chooses the first letter in every menuitem.…. I have a whole lot of buttons with
shortcutkeys
that I really need and its pretty anoying that… menues where I dont have any
shortcutkeys
. This dont work eather: FiskToolStripMenuItem.
ShortcutKeys
= Keys.None This is what …
Re: I dont want menuitem shortcut keys
Programming
Software Development
12 Years Ago
by splitter66
…objective.[/QUOTE] It is not standard for windows to have
shortcutkeys
that you cant see, that in fact is really … microsoft development. I have now put back all the
shortcutkeys
in the menu that I had from the beginning and… taken off
shortcutkeys
from buttons so there will be no missunderstanding with …
Re: .net shortcut keys
Programming
Web Development
13 Years Ago
by zalakshah
[url]http://www.dofactory.com/
ShortCutKeys
/
ShortCutKeys
.aspx[/url] Go to this link Thanks
Re: How to add a short cut in a Windows Form Application
Programming
Software Development
12 Years Ago
by nick.crane
The ToolStripMenuItem class has a
ShortcutKeys
property. Just set this to what you need.
Re: Type or Namespace Cannot Be Found
Programming
Software Development
13 Years Ago
by Momerath
You need a [ICODE]using System.Drawing;[/ICODE] at the top of your code (and System.Drawing.dll in your references, if it isn't there).
Re: Type or Namespace Cannot Be Found
Programming
Software Development
13 Years Ago
by steven8579
thanks for the reply. i have using System.Drawing at the top of my code ad System.Drawing.dll in my references but i still get that error about the line i put in red.
Re: Type or Namespace Cannot Be Found
Programming
Software Development
13 Years Ago
by kvprajapati
Open the [b]Form1.Designer.cs[/b] file and add namespace entry or type [icode]System.Drawing.Font m_objFont;[/icode]
Re: Type or Namespace Cannot Be Found
Programming
Software Development
13 Years Ago
by steven8579
thank you!
Re: I dont want menuitem shortcut keys
Programming
Software Development
12 Years Ago
by Reverend Jim
I haven't tried this myself but could you use KeyPreview on the form to detect and ignore all Alt key press events?
Re: I dont want menuitem shortcut keys
Programming
Software Development
12 Years Ago
by splitter66
[QUOTE=Reverend Jim;1734411]I haven't tried this myself but could you use KeyPreview on the form to detect and ignore all Alt key press events?[/QUOTE] Hi, I want the Alt+"a key" to work on my buttons. Even if I catch the Alt+"a key" as you say it still opens the menu. Even though I say button.focus()...
Re: I dont want menuitem shortcut keys
Programming
Software Development
12 Years Ago
by ChrisPadgham
The problem is that you are trying to change standard windows behavior which is not good for the usability of your program, people will find it difficult to learn and use if it does not behave in an expected manner. Perhaps you can think about an alternative approach to achieving your objective.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC