Shortcut Keys - Visual Basic 210 - Open Another Form
Dec 1, 2011i'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 Repliesi'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 RepliesHidden Features of Visual Studio (2005-2008)?
What are some shortcut keys you know of that make programming faster, easier, or all around more enjoyable?
I was wondering if there is any way to make a program recognize a keyboard shortcut while its not the active program
View 1 RepliesI have a appliction developed on Visual studio 2003, .Net Frame work 1.1.After I migarted that application to Visual studio 2008, .Net Frame work 3.5, Visual Studio is crashed as opening some Visual basic designer files by Visual Basic Form Editor.The below is detail error message of Visual studio:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe[code]......
I have created a (kind of) 'Desktop' Form for the main basis of my program. Basically it is made up of 3 panel controls.
1. Holds all buttons which load the different forms (Like the windows start menu when expanded). name: StartMenuPanel
2. Holds Information on log in deatails. name: LogCheckPanel (very thin panel at top of screen)
3. Main panel which takes up the majority of the screen (where I want the forms to load). name: MainPanel
My aim is: When a button is clicked from the 'StartMenuPanel' the form will load with-in the 'MainPanel'.
I tried changing the start position to 'centre parent', but the panels are in the way so some of the childform is overlayed by the panels.
[Code]...
When I run this I get the following error: 'Top-level control cannot be added to a control'.
I hope I've explained this well enough.
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].....
may i know is that possibleto assign the form a shortcut key like crtl 0 to load/open the form?
View 2 RepliesHow would I open a program within Visual Basic 2010? (Like running "Application.txt" from "C:" within a Visual Basic project.
Public Class getfrom
Dim getfrom As String
Dim saveto As String
Dim download As Boolean
[code]....
i have create software using visual basic 2008 now i am stuck with several matter
i need a code that can open multiple URL in one time... when i click the button.. the URL also i can easily add or deleted it
How do I run files/application with standard editor/viewer?
View 1 RepliesHow do i open an VBS project in Visual Basic Express Edition?
View 1 RepliesHow can I open a Visual Basic application that I created in 2002? I downloaded a current version of Visual Basic Express and was able to connect a new project to the .mdb files but I couldn't figure out how to open the other files which I need to actually use the application.
Ideally I'd like to run the .exe file, but it doesn't seem to be compatible with Windows 64-bit. Alternatively I'd be happy recreating it with the various components if I could figure out how to access them.
I had a tree view in visual basic with many root and child.
I want to direct open file like xlsx, aspx even a folder each time i click at the selected node.
I'm using VB Express 2008 and I would like to open an excel file and save it with different name file. For example, I would like to open a file in
C: est.xls
And then I want to save them with different file name such as
C: ry.xls
I need to open an MS Word document and insert a picture to it using VisulaBasic 2008 by clicking on a button. I tried the automation code provided at this link [URL] but I can't find how to do what I want.
View 6 RepliesWe are testing the visual basic 2010 ee in one of the computing suites at a secondary high school. The installation was fine When we tried opening or saving a project it saves it into a default location i.e my documents. The problem withthis is pupils dont have access to c:. They their own drive on the network (h:) where they save their work. When i went and changed the settings in VB in tool > options.
View 3 RepliesI 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]...
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].....
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]...
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
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]....
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 RepliesSo 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].....
Private Sub FavoritesToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FavoritesToolStripMenuItem1.Click
FavoritesToolStripMenuItem1.Visible = False
[code].....
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 RepliesI was wondering about how to get shortcut keys (like control C) to work
View 4 RepliesI 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 RepliesI 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?
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 RepliesWe 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].....