Winforms Menu Item Shortcuts Overriding Default Shortcuts?
Aug 19, 2010
In a VB.NET Winforms application, I have a form that contains both a datagridview and a textbox. I have some menu item entries that have shortcuts of Ctrl + X, Ctrl + C, and Ctrl + V that operate on the datagridview. However, these override the default cut, copy, and paste shortcuts for the textbox. How can I make the menu shortcuts only apply when the datagridview has focus?
View 2 Replies
ADVERTISEMENT
Dec 15, 2010
Does anyone know an easy way to set a keyboard shortcut for a tab in a tab control in Visual Studio 2010? Is there some property I can set?
I looked online, but all the articles I saw were very confusing.
View 2 Replies
May 5, 2009
I created shortcuts for some of my exe's in the program menu. For example, I might create shortcuts for a.exe, v.exe, and g.exe. By default, it aligns as a, g, v (in alphabetical order). I want to place my shortcuts in a different order, such as (v, a, g).
In short, I want to be able to change the order for the shortcuts it creates to something other than alphabetical order.
I am using wshshellobject in vb. I created a dll; through that I created my shortcuts
View 1 Replies
Feb 15, 2012
Is there a way to change default Windows keyboard shortcuts like CTRL + C, CTRL + X etc. to my desired shortcuts like CTRL + J, CTRL + Q etc. in .NET ?
I can register the new hotkey easily with RegisterHotkey. I just need to unregister the hotkeys Windows has registered and add their functionality in the new hotkey.
View 2 Replies
Apr 30, 2009
I want to use the same menu shortcut keys in a MDI child as in the parent...the problem is that the parent seems to receive the Event first and is calling his menu entry. The child (though it does have the focus) does never receive any event whatsoever...I can bypass this behaviour by adding a Textbox to the Menu, and the moment that one has the focus the menu shortcuts are working as expected (child gets it first, after that it's passed through to the parent).
View 1 Replies
Apr 8, 2009
In the Keyboard Shortcuts properties menu some of the options are F13-F24, what these are, as these buttons do not appear to exist.
View 2 Replies
Jan 9, 2010
I create a class "Planet" that can be inherited. One of the purposes of inheriting is to create a template with different default property values. Eg:
Public Sub New
MyBase.New
MyBase.ForeColor = Red
[code]....
Now, to stop the defaults serializing in the InitializeComponent method, there are 2 ways:If I've implemented the properties using the 'DefaultValue' attribute, and made them overridable, the attribute can be overriden with the new value.The problem with this is, there's no way to just make just the attributes overridable, as opposed to the whole property.I could implement every property with protected Reset'PropertyName' and ShouldSerialize'PropertyName' methods. However, this is a bit of a pain in the arse.Is it, generally, an important consideration to ensure that someone who overrides your base class has the ability to change the default values of a property?
View 1 Replies
Nov 9, 2009
I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not underlining the G until I press the ALT key.Is there a way to have this underline the text that I put an ampersand in front of when the form/application starts instead of having to have the user press the alt key?
View 1 Replies
Sep 11, 2010
I am an application to make and I sit with the following problem. I want to add shortcuts to my program. The F10 key word. But the shortcut should work even if the program is not focused. How do I do this?
View 5 Replies
Jun 22, 2010
I'm creating a Setup Project (in Visual Studio 2008) for VB.NET application, everything works fine but I want to ask how to put an option for shortcuts. I mean, i know how to put shortcuts to desktop and start menu but I want some kind of checkbox where you'll have an option to put those shortcuts or not to?
View 3 Replies
Apr 20, 2009
I want to be able to edit my text box pretty much like you can with windows notepad..
in notepad, when you press CTRL + C , it copies, CTRL + V , pastes , and so on.
View 5 Replies
Aug 7, 2011
Is there any way to disable the keyboard shortcuts of AxWindowsMediaPlayer or even handle the KeyDownEvent of that control ?
View 1 Replies
Dec 23, 2009
I am trying to assign a keyboard shortcut to a macro but "Press shortcut keys" textbox does not accept input. The "Remove" and "Assign" buttons are disabled. I have a command highlighted and I've tried in all the available "Keyboard Mapping Schemes". I've noticed that on some of the samples on "Modifying Keyboard Shortcuts" there were buttons for creating new mapping schemes. I'm assuming those are a visual studio version prior to mine - maybe 2003. Mine only contains the reset button.
View 2 Replies
Feb 1, 2010
i want to know to create a shortcut that will open another Form.
View 2 Replies
Jan 17, 2011
Ie. F5 shows msgbox("hello") all examples are for windows form applications. :/
View 1 Replies
Jan 22, 2011
Is there a way to use shortcuts in your app (like Crtl+F1)? When those keys are pressed my app should notice it, even when they are pressed outside my app window.
View 4 Replies
Aug 5, 2010
I have a desktop application which reads files from a specified folder, then deposits the files to a folder in a third party document management system based on criteria that the user provides.
is it possible to somehow provide different parameters to the code, depending on which shortcut of the application the user clicked on to start it up?
View 3 Replies
Jun 2, 2010
I have some VB.Net WinForms I imported from VB2005 that are MDI Child forms. In the old project the clipboard shortcuts work (Ctrl-V, etc.) but in the VS2010 project they do not. the ShortCutsEnabled property is true.Any way to get these working again without adding special code to replicate the feature? I have a bunch of forms to convert....The parent does have KeyPreview but I can comment that out and the problem still exists. I also hook the TextChanged event for dirty logic but I can comment that out also to no avail.
View 6 Replies
Mar 19, 2010
When I programmatically create a shortcut to a folder like this:
CODE:
All works fine.
But I need multiple shortcuts. I tried this:
CODE:
But it seems that VB NET is creating the shortcuts over the previous ones and all that I have after runtime is the last one - a shortcut to C:.
How can I create multiple shortcuts to multiple folders in the same folder?
CODE:
View 2 Replies
May 3, 2011
i'm currently working on a security program and i need to temporarily disable some key combinations using vbnet. Key combinations such as: Ctrl-Alt-Delete, Alt-Tab, Alt-Esc, Win Keys, Alt Keys, Esc.
View 1 Replies
Aug 27, 2009
what i want to do, is have a user select a file. And then the program displays the icon associated with that particular file. Would this be hard to do? And if its easy, can somebody give me an idea on where to start?
View 2 Replies
Sep 15, 2010
For example if I have a button that says "Copy" and I want the "C" underlined so I can press the "c" key and have the buttonpressed event fire, I have to have "Hide Underlined letters for keyboard navigation until I press the ALT key" unchecked in the Display Properties>Appearance>Effects area. If it is checked, a user would have to press the ALT key to make the underline visible (for each form).
View 8 Replies
Apr 7, 2012
So recently my Netbook keyboard stopped working, I got this new one. That would not be a problem if it was not for the missing [FN] key. My computer has several shortcuts, like FN + F6 = Turns screen off.
I cant seem to figure out how to bind these shortcuts to buttons in Visual Basic so I can just hit the button and turn the screen off that way, I've only used VB to make small simple fun stuff.
View 4 Replies
Oct 9, 2010
So, I was making shortcuts for a text editor I made. The first 3, that I originally included were control-b control-i and control-u for the bold italics and underline. That worked fine. Recently, I added control-s and control-o for save and open. I don't know why, but once I press control-s or control-o once, the control key seems to stay "pressed", so whenever I press just b, u, i, s, or o, they activate the commands. Here's my
[code]...
View 3 Replies
Sep 5, 2011
I have a Game Os with a desktop including shortcuts.I want to save location of shortcuts if it are moved.How I can do this?For move shortcuts i used:
Static mousePosX As Single, mousePosY As Single
If e.Button = 0 Then
mousePosX = e.X
mousePosY = e.Y
Else
[Code]...
View 3 Replies
Sep 13, 2010
Is there any property or any tweak that will allow the textbox to respond to ctrl+Backspace, ctrl+A,etc. Or do we have to manually handle the keydown event.I have set the "ShortcutEnabled" property to True , but it is not capturing all the shortcuts
View 16 Replies
Jan 7, 2012
I'm looking to be a able to add my own windows shortcuts which take effect when my own program is running in the background.For example, if the user has Notepad open, they may press Alt+F4 to close it. I would like the Windows Key + Q to do the same action.So Windows Key + Q = Alt + F4.There are a few shortcuts I would like to do but if someone could help me do it for this one then I should be able to take it from here.
View 3 Replies
Feb 2, 2011
I'm trying to add .lnk files to a setup project but am unsuccessful. I have 2 custom shortcuts that I created which link to a network share, but everytime I try to add them to the setup project in the users desktop or start menu, vs simply doesn't allow it. No message box or error box appears, I select the .LNK file to add and it "pretends" to add it and allows me to select it, but doesn't appear in the setup project folders.
View 1 Replies
May 30, 2009
I'm afraid I don't have any code to show, as I don't know where to begin with this. I'd like to have it so that if the user presses "Ctrl+O" it will run the OpenDialogue from the Menu. If someone really wants me to (don't see how it'd help, but whatever it takes ) I can post the fully functional open function.
View 4 Replies
Feb 7, 2012
I'm running Visual Studio 2008 v9.0 I'm having difficulty getting the bookmark keyboard shortcuts to work as documented. I did this:[code...]
I must be doing something wrong here. What should I do so that the bookmark shortcuts work as advertised?
View 3 Replies