Forms :: Short Cut Keys Dont 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
[code].....
View 3 Replies
ADVERTISEMENT
Aug 30, 2011
I have created one silverlight application.In the application i have included two buttons named as SAVE and CANCEL. I want to give short cut keys for those two controls.For Example if user click CTRL+S it should save the data and CTRL+C it should cancel.
View 6 Replies
Dec 8, 2010
i am still new to using session state, i want to convert page name into and integer according to a database table a function then compares "X" and "Y" to check if a user have the right to view this page..i know this is not the best way of managing website security, but it is like "training on how to use the session".[code]
View 1 Replies
Dec 13, 2009
Each time I create a program, if I don't change the CPU type to x86 in the Project Properties, Compile, Advanced Compile options, it doesn't work. For example, if I hit the drop down button on a combo box, there will be no data, but after switching to x86, there is data. How does changing the CPU type affect how others (such as when its being graded) view the program? If the program is not run on an x86 system, would it appear to not work then?
View 1 Replies
Aug 20, 2009
I have 2 console apps projects in the same directory but different projects. There is some common code in the App_Code directory and a common app.config which gets build into seperate .exe.config files.One module (VScanDemonStarter) starts up and writes to one logger with its own appender going to a seperate file. It uses an process.start() to execute the other module (VScanDemon) in another command prompt hidden window.When I run VScanDemon by itself it puts entries into its log file. When I run VScanDemonStarter it puts entries into its (different) log file, the VScanDemon log file gets created, but no entries. I can see it is executing because some files get moved from one directory to another. Just no Log entries.
<root>
</root>
<appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender" >
[code].....
View 1 Replies
Dec 15, 2011
wen i open mdi through the login form, the forms inside the mdi child forms dont seem to execute.
View 2 Replies
Oct 1, 2009
I have an image viewer application which consists of a Panel with a picture box on it. I want to use the arrow keys to iterate through the images in a folder. I have programed other keyboard shortcuts and all of them work except for the arrow keys, my program does not even acknowledge the KeyDown or KeyPress Event with the arrow keys. [code] As I said, all key events will fire the KeyDown with exception of the arrow keys.I have tried the Keypress event also and had the same problem
View 3 Replies
Aug 7, 2010
I am using the RichTextBox Keydown event in Windows Vista, Visual Studio 2010 to detect when key combinations are pressed, and it works great, with one simple exception:Case Keys.Alt ' Does not work! Everything else works fine.
HTML
Private Sub RichTextBoxPrintCtrl0_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles RichTextBoxPrintCtrl0.KeyDown
Dim high As Integer
[code].....
View 5 Replies
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
Dec 24, 2009
I was wondering about how to get shortcut keys (like control C) to work
View 4 Replies
Dec 13, 2009
Dim Keys As String
Dim Wait As Boolean
Public Shared Sub SendKeys( _
[code].....
View 5 Replies
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
Mar 30, 2011
I am trying to make the transparency of forms change in someway. I tried making a track bar with checked boxes and that didn't work, and I tried the ALT with the UP and DOWN keys,I tried to change the code so it would fit in with my program and that didn't work ether.
View 5 Replies
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
Apr 19, 2011
I would like to be able to press shift+D+A+L to open another form (form2) ussing VB.net how do i do this?
View 1 Replies
Apr 25, 2012
I want to use System.Windows.Forms.Keys with a variable for example
shortcutkey = "A"
keydata = System.Windows.Forms.Keys.shortcutkey
The idea was to implement custom shortcuts that the user specifies to perform certain actions.
My code is like this
If (((BindingFunctions.IsKeyDown(Keys.ControlKey) AndAlso BindingFunctions.IsKeyDown(Keys.ShiftKey)) AndAlso BindingFunctions.IsKeyDown(keyData)) AndAlso (keyData = Keys.L)) Then
[Code].....
View 1 Replies
Oct 28, 2010
I'm currently working on a project for university, basically we were given an incomplete program to finish off with bonus points for adding addition features in.Part of the program is to move an image (a monkey) around the picture box (pen). Now to move the monkey we use 4 buttons on the form called Up, Down, Left and Right, however as we need to move the monkey around to test other parts of the program it gets annoying having to click on the button. As such I was able to get some code which allows me to move the monkey around using the arrow keys (I think you can all see the benefit of this). When I use the code in a blank form it works fine, however when I add a button onto the form the arrow keys will instead highlight the buttons.basically set up a button to disable all buttons on the form until a certain key is pressed, however I would prefer not to have to do this.
View 3 Replies
Dec 15, 2009
i've been working with multiple forms. here's the situation.. i have 2 forms form1 and form2 every time i show the form2 from the cmd Bttn in form1 then i close and reopen it again it always prompts me with disposal error.
View 3 Replies
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
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
Mar 15, 2010
I was referred to this forum section for VB2008 questions instead of VB6, so Ill assume this is the right place to ask this question. Yes I copy/pasted.I'm EXTREMELY new to VB2008 and I was basically making a program that is used for "password storage" that will be used only by me, I have made a simple login page that will not allow new usernames/passwords and a simple text box-listbox-add-delete page for submitting and displaying what I wish. What Im trying to do is make it so every time I open the listbox form, you are prompted with the login form. Im not sure of a proper term for this as I just downloaded VB2008 2 days ago.
View 3 Replies
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
Jun 1, 2009
i want to put one font dialog and one color dialog in one content strip menu that work in every form i have.
View 1 Replies
Mar 20, 2011
I have an issue with my .NET application and it can only be reproduced sometimes and only on client's location, which makes it extremely difficult to resolve. In the application the forms authentication is used. There is a login page to which every anonymous user is redirected. After user enters username and password, it redirects to DefaultURL or some predefined page. The problem is that sometimes when user enters correct username and password, it doesn't login, instead it just refreshes the login page without any error messages. After several tries of inputing username and password, user is able to login to the system.
See my login page Submit_Click code below:
Dim userName As String = tbUsername.Text
Dim password As String = tbPassword.Text
Dim returnUrl As String = Request("returnUrl")
[code]....
View 2 Replies
Feb 22, 2009
Is there a list or a way to get one of the lists in VB.Net to work like the ones in CDBurnerXP?I shows a small icon at the side, then has a title and a little description under that.Have designed a program around this style of list but now when i have came to .net to write it...
View 1 Replies
Oct 30, 2010
I'm working on a simple calculator program for work in VB.NET and I'd like it that an operation could be performed without a mouse click and instead by using the Enter key. So essentially I want the segment of the program that is usually run by button to have the ability to be run by the Enter key.I'm using VS2010.This is what I was trying to do but I suppose I'm not doing it correctly because the Enter key does not do anything when I press it.
Private Sub btnCalc_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles btnCalc.KeyDown
Select Case e.KeyCode
Case Keys.Enter[code]....
View 3 Replies
Nov 13, 2011
I am trying to build a program that monitors how other programs are being used and as part of it I need to figure out if it is possible to work out using VB code what window, program or process the user is currently using or Focused on.
View 1 Replies
Feb 20, 2009
I hava a form app, that runs hidden, with just a notify icon, the goal is control worker schedule and alert them for some things they have to do.My problem is,when i open a form (with TopMost = True), it works if the user is admin of the machine or domain admin, if the user is "regular" user, the form just don't open or shown to the screen.I believe that it has got something to do with write permissions in the app folder. I have a contextmenu that works great, even restoring the hidden main form, it just doesn't show/open the other form, without any error.Shouldn't .net use the user $temp folder to write something? If not what's the best way for the app use the EnvironmentVariable("temp")?
View 7 Replies
Jan 14, 2006
I was working with this control to make multiple pages fit on 1 main window. When clicking a menuitem, the program will go to the correct tab. Now the problem is, i only have the 2 standard tabs.. NOTE: This is NOT the standard Tab control found in VB.NEt 2005 ! Does anyone know how to add more tab pages
View 1 Replies
May 2, 2012
All i need to do is save the project when i done, But it keeps updating.
View 7 Replies