Shortcuts To Open Forms E.G. F1?
Feb 1, 2010i want to know to create a shortcut that will open another Form.
View 2 Repliesi want to know to create a shortcut that will open another Form.
View 2 RepliesI created a webrowser in VB.net to track employee usage and it seems to be working fine but I wanted to find out what it would take to set this as a default browser on a PC.I also would need to know how to pull the URL from shortcuts so when the program opens I can have it open to the URL in the shortcut.
View 7 RepliesI'm running in to a bit of a strange error with an application I'm writing. I have a number of shortcuts on my computer desktop that take me to my various folders (documents, music, etc) and have always been able to navigate using them when I open a file through applications such as Word. However when I use an OpenFileDialog box in VB.NET and select one of these shortcuts to take me to the file I'm after I am getting the following error message...
View 3 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 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 RepliesI 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 RepliesHow do I enable Ctrl+C, Ctrl + X and Ctrl+V for textboxes in my application? I can copy, cut and paste by right-clicking the textbox but keyboard shortcuts won't work... Also, in the menu under Edit I have Cut , Copy, and Paste but they don't work either. Under the code for these buttons I see the following:
Private Sub CutToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) Handles CutToolStripMenuItem.Click
' Use My.Computer.Clipboard to insert the selected text or images into the clipboard
End Sub
I have no idea what I have done wrong here, so I'll just attach my project as a zip file and see if any of you are kind enough to look into it for me.I am reasonably experienced in C#.NET but having trouble using VB.NET for a school assignment.I cannot open half of my forms in designer view because "To prevent possible data loss before loading the designer, the following errors must be resolved".
View 1 Repliesi was doing a fair amount of programming many years ago, like 10 it feels like, so I'm sorely not up to date on how my newly downloaded Visual Basic Express expects me to communicate with it.I am writing a program that pulls a cell from a database after the user has gone through several forms to determine which cells they want. When I write it like that, it doesn't sound very efficient, but I've designed it this way for usability.Here's where I have a problem: Should I store the path the user takes in a string, an array, what?
Here's an example:Someone wants baseball stats and trivia. They run my program, main form pops up, they select National League button, the NL Form pops up. Now the way my program is set up right now, is there are two ListBoxes on the form, one is populated, and as the user selects a Team from ListBox1, it jumps to ListBox2. Once they've selected all the teams they want info for, they click a button Next.
What I now need the program to do is show the next form "Team: name" once for each team, and insert the name of the team on the form in the appropriate label which I'll have blank. This form will also do the Listbox thing except the first listbox will populated with Topics like HR Stats, Pitching Stats, Coach History, etc.
I have two forms frmMain and frmNew, and one module modMain. In modMain I hold public variables which are needed for application. My question is how to open and close those two forms when needed? I ask this because if i set frmMain as startup form, then when closed, application will end, and one of those two forms will always be displayed. Also if I set frmNew as startup form, then when I close this form, application will also end. Is there a way to do this from module or something so my application won't end after closing and opening any of those two forms?
View 2 Repliesif you guys have used office 2003 or better( i am sure all) then you would have seen that when the help window open it causes the active windows say of MS WORD to change accordingly so that this help windows fits with it along the right side and this functionality i want to implement in my VB windows application and have no idea how to do it Also i have seen this feature in GOOGLE DESKTOP GADGETS...
i want to implement that when my application opens which ever is the active window( of any application) snaps to the left and allows my application to fir in the right hand side i am developing my application in VS 2005 using Visual Basic.
I would like my forms to open as part of a "bigger" program, where there is a screen that fills the monitor and inside this screen is my form, centered. When a new form is opened, only the new form will be displayed...it will not be form on top of form.It would look similar to the screen in the following link, except the form inside the bigger screen would not have the minimize, maximize, or close buttons.I am just wondering if there is a property in VB.NET forms that will allow this to happen.
View 8 RepliesI want to close form and open another one without termination of the application, when I try to open second form and close first one the application terminate.[code]...
View 2 Repliesi want to make two forms open next to each other. So when button 1 is pressed form1 and from6 will open. I know how to make them open but i want form1 to be on the left and form6 on the right with atleast one inch in between them.
View 4 Repliesi have to open different forms thru menu. Whenever i am opening new from the current form should be minimized and new form should be visible and when closing the new form the old one should be viewed again. First level of menu to new form works fine but when i am using form to another form minimize works fine but i need to view in normal mode again fails to view. How can i do this?
Main.WindowState = FormWindowState.Normal [Which is not working]
i am using this code to view. To minimize i have used Me.WindowState = FormWindowState.Minimized control.
I would like to hava an application in which I have several buttons on the main scream. Each button will open new screens (or forms) but I'd like them to open it in the same screen as the main form not in a new one.
View 3 RepliesI am trying to open two different forms depending on if I click yes or no from a message box. The code runs but both yes and no open the same form. Is it possible to open two different forms? My code is posted below.
Both open Form3 when clicked. mbrown686886 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
I am using a treeview as a menu to open forms. Currently, I have a Select Case statement to determine what the node text is, then the form opens.With many forms, Im not too certain that a Select Case statment is the way to go.
View 12 RepliesI 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 have two windows forms,say frm1 and frm2. I have to open frm2 from frm1 and frm1 from frm2.when one form opens other hide. But the the problem is that everytime when i open the form new object of the form is created which increase the memory usage of the application.What should be the efficient way to switch from one window form to another in vb.net.
View 2 RepliesI have a form which has has a bound data source (generated automatically by VB - table adapter, binding source etc).How do I use the Form.Show method to open the form ready to enter a new record. Is there a simple way of doing this?
View 4 RepliesI have multiple tabs opened in 'any browser' and one of it is titled 'LAME', how can i make links open(by buttons) in that tab? I have a simple form with two buttons,
Button one:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("http://www.google.nl/sub1")
End Sub
[code]....
Is there any switch that will allow you to open an application over all the other currently open applications? My problem is getting Explorer to open over all the other currently open applications. Right now, it only opens in the background......
View 5 RepliesI am using MDI forms and I would like when a button is clicked, if the form is already open. it just puts it on top instead of opening the same form again.
View 2 Repliesmay i know is that possibleto assign the form a shortcut key like crtl 0 to load/open the form?
View 2 RepliesI am doing windows application project in vb.net ,code for how to save ,open and print a file /document.i have used the below code for save but its not working fine. [[code]
View 1 RepliesI have a project with various forms all of the same size. Is there a way of getting them to appear in, for example the middle of the screen each time they load, in the same position
View 2 RepliesAt one point I have a dialog form open, but in order to process it, the user might want to access information on other (open) forms. This would necessitate the ability to move/resize/scroll the other forms, but obviously everything is frozen during the dialog. I don't suppose it's possible to achieve this "semi-modal" state, where other forms can be browsed, but no other actions taken?
View 5 Replies