VS 2010 Use Shortcuts In App (like Crtl+F1)?
Jan 22, 2011Is 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 RepliesIs 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 RepliesIn 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 RepliesI have been working on a visual Basic 2010 program to writw a Telnet script in VB Script. I have exerything working fine but need a way to send Shift+CNTL+6 to exit the telnet session.
View 7 RepliesTrying to remove shortcuts from a contextmenu at runtime. The shortcuts are added at runtime btw.
Private Sub conmnu_xsyn_PopupOpen(sender.....
conmnu_xsyn_undo.Shortcuts.Add(eShortcut.CtrlZ)
conmnu_xsyn_redo.Shortcuts.Add(eShortcut.CtrlY)
[code]....
This works fine, but now I'm trying to remove them when the contextmenu closes. I've tried several events (popupclose, disposed) , but nothing seems to work. Perhaps someone know how it actually works. The code I use to remove a shortcut is simply:
conmnu_xsyn_undo.Shortcuts.Remove(eShortcut.CtrlZ)
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 RepliesI 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 RepliesI'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 RepliesI 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.
Is there any way to disable the keyboard shortcuts of AxWindowsMediaPlayer or even handle the KeyDownEvent of that control ?
View 1 RepliesI 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 Repliesi want to know to create a shortcut that will open another Form.
View 2 RepliesIe. F5 shows msgbox("hello") all examples are for windows form applications. :/
View 1 RepliesI 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?
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 RepliesWhen 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:
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 Replieswhat 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 RepliesFor 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 RepliesSo 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.
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]...
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]...
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.
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
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 RepliesI'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 RepliesI'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 RepliesI'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 RepliesI'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?
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.
I've written a very simple form application that launches a bunch of shortcuts. There's one particular one I want to launch, but it's got a lot of switches with special characters. I can't figure out how to make the switches/arguments into a string so that VB2010 will pass it to the executible cleanly.. Here's what I did, I'm sure it's laughable, but I guess everyone starts somewhere:
Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
Dim MyString As String = ","/CitrixShortcut: (1) /QLaunch "CHCFarm:Citrix Console""
Process.Start("C:Program FilesCitrixICA Clientpnagent.exe",MyString)
End Sub