VS 2010 Shortcut Keys (KeyUp) E.Keys Combinations?

Mar 25, 2011

I'm trying to create a shortcut which expands or collapses my treeview using the ctrl+alt+up-arrow or ctrl+alt+down-arrow:

If Keys.ControlKey And e.KeyCode = Keys.Alt And e.KeyCode = Keys.Down Then
mytreeview.ExpandAll()
End If

[code].....

View 2 Replies


ADVERTISEMENT

Assign And Pressing The Shortcut Keys For VS 2010?

Jul 23, 2011

I've encountered another minor problem with using vs 2010...how do you assign shortcut keys? I've read you just click in the shortcut keys option then press the buttons you want to be your shortcuts- this however just acts like I'm pressing the shortcut keys for vs. for instance alt x, which I want to be exit, takes me to debug. Typing alt + x in manually gives me an error saying what I've put in is invalid.

View 8 Replies

VS 2010 Menu Shortcut Keys While Another Program Is Open?

Sep 13, 2010

I was wondering if there is any way to make a program recognize a keyboard shortcut while its not the active program

View 1 Replies

Game Programming :: Detecting Whether One Of The Arrow Keys Is Pressed, All The Other Keys Seem To Be Detected Apart From The Arrow Keys?

Oct 21, 2008

I have a problem detecting whether one of the arrow keys is pressed, all the other keys seem to be detected apart from the arrow keys??? I have set key preview to True........ It detects the arrrow keys BUT ONLY if I have NO other controls on the form??? example..

Me.Text = e.keycode

It works, but then if I add a button for example, it stops.

View 3 Replies

How To Make Shortcut Keys

Feb 13, 2012

I want to run specific code through shortcuts defined for my specific program. For example if I click F1 or ctrl+C then I want my program to show customers list. I have tried form's keydown event with following code

[Code]...

View 5 Replies

Shortcut Keys And Modifiers?

Jul 12, 2011

I was trying to create some shortcuts for my application and I read how to do it on MSDN

Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.Control And e.KeyCode = Keys.S Then

[code].....

View 5 Replies

Shortcut Keys Do Not Work?

Jul 8, 2009

I have formA.vb and I added some shortcut keys using the key_up event handler. Before coding the handler I change the keypreview property of the form to true. I added this code :

Private Sub IntRMA_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp If e.KeyCode = Keys.ControlKey And e.KeyCode = Keys.C Then
modcustomer.Show()
ElseIf e.KeyCode = Keys.ControlKey And e.KeyCode = Keys.T Then
Me.Button6.PerformClick()

[Code]...

View 8 Replies

Shortcut Keys Not Working?

Feb 16, 2010

I have an application which I am trying to implement shortcut keys in. The application contains a main window from which dialog popups can be opened. I am having difficulty implementing the shortcut key functionality on the popup windows. I have the following code in one of the popup windows, and even though the first three key entries are the exact same as on the main window (except for the actual button names), which works, the same code does not work on the popup.

Private Sub frmInduction_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Control + Keys.S Or e.KeyCode = Keys.F5 Then
btnAccept.PerformClick()

[code]....

I am opening the popup window with the following code- is there any way that the problem could be caused by how I am opening the popup?

Using frm As frmChangeValue = New frmChangeValue
frm.ShowDialog()
End Using

View 3 Replies

Use Shortcut Keys In Datagridview In .NET?

Jul 27, 2011

I try to use Ctrl+C, Ctrl+V, Ctrl+X in datagridview. However, when I use keyDown, KeyUP events, both only return the ControlKey. How can I get the returned information including both keys such as Keys.C And Keys.ControlKey?

Public Class frm_SoilData
'........
Public Sub dgv_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) _
Handles DataGridView_SoilProfile.KeyUp

[code]....

View 5 Replies

Using The MenuStrip ShortCut Keys?

Sep 22, 2008

I'm having a spot of trouble working out how menustrip yet again.I have an MDI project. A child form contains a menustrip that has shortcut keys defined... F1 through F4 at design time. At run-time the child form menustrips are merged into the MDI parent form menustrip.The Function keys do not cause the menu to drop down. *Frutz* I thought okay. I'll use the control's keypress event to trap the F1 key and cause the menu item to drop down Apparently the menu Item is not available in the child form since it was merged to the MDI parent menustrip...*Frippity Frutz* Okay... Call the MDI parent menustrip from the child form...."No menustrip object found".

View 4 Replies

C# - What Are Some Useful Shortcut Keys In Visual Studio

Jun 27, 2012

Hidden Features of Visual Studio (2005-2008)?

What are some shortcut keys you know of that make programming faster, easier, or all around more enjoyable?

View 4 Replies

Forms :: Creating Shortcut Keys?

Jul 17, 2009

So I've been trying to make a form in which a few of the buttons have keyboard shortcuts such as the F keys as well as the arrow buttons. Here's the code I've been using

Private Sub frmOrganizer_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If obSelect = True Then

[code].....

View 1 Replies

Hide/Show And Shortcut Keys?

Aug 8, 2010

Private Sub FavoritesToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FavoritesToolStripMenuItem1.Click
FavoritesToolStripMenuItem1.Visible = False

[code].....

View 1 Replies

How To Disable Menustrip Shortcut Keys

Jul 16, 2009

I have a VB 2008 form with about a dozen buttons that use ALT+key shortcuts, e.g. names beginning &S, &N, etc. I also have a menustrip with a couple of entries but I have not assigned shortcut keys to any of them. However, three of the entries on the menustrip begin with S, N, and E. The result is that the shortcut keys for those buttons don't work - instead the shortcut activates the menustrip item. For example, ALT+E brings up the Exit on the menustrip instead of activating the button with the &E... label. I even tried setting the shortcut for the menu item to something totally different, but it doesn't matter.Even though I have programmed something different, the menu strip takes precedence on the shortcut. is there any way to just disable shortcut keys on the menustrip? What I've done for now is alter the names of my menustrip items by numbering them, e.g. "5 Exit" instead of "Exit" so that ALT+5 does the exit and leaves ALT+E for the button I want it to be associated with.

View 3 Replies

How To Get Shortcut Keys (like Control C) To Work

Dec 24, 2009

I was wondering about how to get shortcut keys (like control C) to work

View 4 Replies

Set Shortcut Keys For Buttons Using Properties?

Feb 15, 2006

I have set shortcutkeys for buttons using properties. Now what i want to do is to underline the character which i have set as shortcut key,on the button text,which is possibe in VB ,(by setting as &Save, now underline will be below the 'S' character),In VB.Net, At runtime it is not displaying the underline for that character.

View 3 Replies

VS 2008 Set The Shortcut Keys In Label?

Mar 28, 2009

I set a shortcut keys in my label...

example: Home

the underline is H but when i tried to test the programm it does not shown up an underlined?

View 7 Replies

VS 2005 Multilingual Menubar Shortcut Keys?

Jul 8, 2010

We have localized our application menubar(Ex: Spanish language).The menubar menuitems have few shortcut keys i.e CTRL + N along with the text. The shortcut key is diplaying in some dummy character.We want the menuitem (Ex: New File CTRL+ N) text in local language and CTRL+ N should display as English

cMenuBar.Font = New Font(Configfontname, Configfontsize)
strMenuText = rsManager.GetString("cbmNewFold")
cbmNewFold = New CommandBarButton(ilToolbar20.Images.Item(0), strMenuText, New

[code].....

View 1 Replies

Wpf - Shortcut Keys Not Working After Messagebox Is Shown?

Apr 29, 2011

I have a Window with Keybindings in InputBindings defined. They work the first time and when i set the focus on any control on the form.But when a Messagbox is shown and I press "OK" they shortcut keys don't work until I set the focus on a control in my window.

My InputBindings:

<Window.InputBindings>
<KeyBinding Gesture="Ctrl+N" Command="{x:Static local:MainWindow.NewMenuCommand}" />
<KeyBinding Gesture="Ctrl+O" Command="{x:Static local:MainWindow.OpenMenuCommand}" />

[code]...

View 1 Replies

How To Get Shortcut Keys Working When Program In System Tray

Dec 14, 2009

I have this code for my shortcut keys
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.Shift = True And e.KeyCode = Keys.F3 Then
'Do something
End If

But I also have a button to send my program to the System tray like so:
NotifyIcon1.Visible = True
Me.Visible = False
How can I get my shortcut key to work while my program is in the system tray?
It doesn't work while its a notify icon

View 1 Replies

Insert Shortcut / Icon Keys On The Web Browser Application?

Dec 30, 2010

the thing is i'm a .net programmer at varsity but i cant figure out how to program or insert shortcut/icon keys on the web browser application e.g back,refresh,stop,go. i'm only able to do this using command buttoms. so i want to use simple icons like those on some web browsers.

View 1 Replies

Shortcut Keys - Visual Basic 210 - Open Another Form

Dec 1, 2011

i'm creating a program in visual basic and i want to have a shortcut key that opens up another form even though my application is not the foreground window

View 1 Replies

Shortcut Keys In The IDE To Move The Cursor To The Top And Bottom Of A Procedure?

Apr 15, 2012

I cannot find these anywhere despite googling for quite a while. There's just about everything else but not these seemingly. I want to be able to go back to the top of a (long) procedure and then back down to the bottom, without scrolling or paging down etc.

View 5 Replies

VS 2008 Restore App From System Tray Using Shortcut Keys?

May 26, 2011

I'm trying to build an application that when I press a keyboard shortcut, say CTRL + ~, if the window is minimized to the system tray it is displayed.

I have seen a few programs do this and have always wondered how to do this, but haven't had the opportunity to do learn it until now and I really don't know if its something simple or complex.

View 2 Replies

Hot Keys VB 10 Express - Giving Auto Typer Hot Keys?

Jun 25, 2011

just wondering how i could give my auto typer hot keys, for example they press f1 to start the typer f2 to stop it.

[Code]...

View 4 Replies

Loop Through A List Of The Keys That Are Available In The 'Keys' Enumeration?

Jan 13, 2011

How could I loop through a list of the keys that are available in the 'Keys' enumeration? It seems like it should be something easy to do, but I'm not having any luck finding a collection that I can loop through.

View 6 Replies

C# - Application's Shortcut Keys "swallowed" By Child Components

Aug 5, 2010

In my main application Form I have a number of menu and toolbar button functions to which I have assigned shortcut keys such as F10, F11 and F12. The shortcuts work well except for instances where certain controls have focus, such as a 3rd-party grid control. In that case the F11 or other shortcuts are handled by that control and swallowed... they never make it to my event handler of the main UI.

I don't really want to, and can't with the 3rd party controls, modify each control (there are dozens) to pass on my F* keys. I thought of hooking the app's message pump but that seems like a severe solution. Is there a better, cleverer way to handle this situation?

(This is a .NET WinForms MDI (2.0) application which hosts many kinds of home-spun as well as 3rd party components.)

View 3 Replies

Recored Arrow Keys And Then Tell Computer To Enter Arrow Keys?

May 23, 2010

So I found this little morpg. The game is fun but really repetitive. I would like to simplify some of the tasks in the game. I do not know how to start this project. How can I recored arrow keys and then tell the computer to enter the arrow keys? One of the objectives in the game is to run around a farm 2x and scare away any wolfs. So the commands would be "arrow key up" for 30sec and then "arrow key right" for 4 sec and repeat. I have worked with robots in real life for some time. We would fill arrays with such instructions. One of the most fun things to program! But I have no idea how to do this in VB.

View 12 Replies

Apply Shortcut Keys (like Control+c And Control+v) In VB

Dec 23, 2009

how to apply shortcut keys (like control+c and control+v) in visual basic There was a thread on this I found but I tried all the codes and variations but nothing worked, like nothing would happen when I pressed the keys could someone give me the code about how to activate a "control+t" and a "control+r" control?

[Code]...

View 3 Replies

Arrow Keys As Hot Keys?

Feb 28, 2010

I need to capture the left and right arrow keys in Form1.KeyDown event so I can use them as hot keys. Instead they seem to be assigned to tab order (move focus to previous/next control) and the KeyDown event never gets called. How can I remove the arrow keys from tab order and use them for my hot keys instead?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved