Disable Certain Keys In VB 2010?

Nov 15, 2011

I am making a fake virus program as a joke and would like to know how to disable all of the keys except for the shift and enter keys.(these will exit the program)

View 1 Replies


ADVERTISEMENT

Disable ALT + F4 Keys?

Dec 7, 2009

I'm trying to disable these keys to prevent that user close form:

Private Sub frm_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.F4 And e.Modifiers = Keys.Alt Then
e.Handled = True
End If
End Sub

But not runs.

View 8 Replies

Way To Disable Two Keys

Feb 29, 2012

I want to disable and ' in a ritch text box using the keydown event but i can't find the keys of these two characters.

View 3 Replies

Disable Enter And ESC Keys?

Apr 3, 2012

I have a problem in my form I am trying to stop my form from being submitted or closed

I have 2 buttons accept btn and cancel btn whenever the user pres enter or ESC the form is closing I tried everything from key press to key down and nothing works,

View 11 Replies

Disable Keys Outside Of App For Children?

Dec 12, 2010

I would like to turn on an app in the background that disables or temporarily remaps all but the alphanumeric keys while they are using my laptop if possible.

View 1 Replies

Disable Keys Using A Form?

Feb 27, 2009

I need to disable keys using a form, when pressing a button, searching in the forum, I found this:

If (e.Alt = True) Then
If (e.KeyData = Keys.F4) Then
e.Handled = True
End If
End If

but I can't get it to work, is there a way to disable keys?I need to disable a, s, d , f keys?

View 4 Replies

Disable Atl+tab Keys In Windows Form?

Mar 26, 2009

I have been searching everywhere for code that will disable the Alt + Tab key press,
I am making a Lock PC program as a little project but I cannot find any way of disabling them.

I am using vb.net (Visual Basic 2008 Express)

View 2 Replies

How To Disable All Combination Keys Of Windows

Jan 11, 2010

How to disable all combination key of windows, I managed to disable taskmanager and altf4, however failed to find disable all windows keys, alt esc. alt space and etc. I don't have any API background.

View 9 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

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

VS 2008 Disable Arrow Keys On Radio Buttons?

Sep 5, 2009

I have a group of radio buttons inside a groupbox and I don't want the user to be able to move the focus away from a button by using the arrow keys. I've tried the following keydown event, but it never gets fired:

Private Sub rbCode_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles rbCode.KeyDown
' If an arrow key is pressed, maintain focus on this radio button
If e.KeyCode = Keys.Left Or e.KeyCode = Keys.Right Or e.KeyCode = Keys.Up Or e.KeyCode = Keys.Down Then

[code]....

View 4 Replies

Disable Ctrl Keys And Print Screen In Web Browser Control?

Apr 16, 2009

I have created my own web browser by dragging the web browser control into a form using Visual Basic 2008 in order to host my ASP.Net pages. However, it is a requirement of the project I am working that users should not be able to use hot keys, especially print screen, ctrl P, ctrl C, and ctrl V. There are no other controls on my form, so how can stop users using these keys, but only in this browser? Further, my asp.net page uses an iframe tag to show a word document, and again, I need to stop them from copying and pasting from the word document into another word document through the browser. Can I stop them in my browser in app stack?

View 1 Replies

Restrict Mouse Movement To Primary Screen And How To Disable Keys

Oct 5, 2009

I had a post about how to disable monitors, but someone suggested just making it not possible to leave the primary screen. This was obviously a good suggestion, but im not sure how i would accomplish this.

I need to prevent the user from entering the ctrl, alt, delete, escape, and windows key. I also need to prevent the mouse from leaving the primary screen.

My program is a security login system. It requires a username and password to close, and i want to make sure that it cannot close unless the user supplies the correct username and password.

View 2 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

VS 2010 Keys Pressed

Oct 1, 2010

How can to Know If the key is pressed and according to act?

View 9 Replies

VS 2010 License Keys?

Oct 4, 2010

After countless hours of production, I've finally got a working product that I'd like to market. However, I obviously don't want this product stolen and torrented. So, how exactly would I add license support to my program? I'd like to make the license paired with a number that's unique to the compute

View 13 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

VS 2010 Converting Keys To/from Different Formats?

Aug 3, 2011

I have a lot of keyboard keys stored in different formats. For example, "Up" may be stored as a string, as a decimal (200) or as hex (C8). I need to convert all of this different representations to strings so they can be easily understood by the user, and then back again when I save them.When I capture the key press using the KeyDown event, I can grab the decimal value from KeyEventArgs.KeyCode, which can easily be converted to hex if needed.

View 2 Replies

VS 2010 How-To Make Product Keys

Apr 18, 2011

im trying to make something to protect my application a simple serial key the only thing i can think of is if textbox1.text = ("key") then blah blah blah you get it. what i really want is something that will allow me to add and remove keys without having to mod the application, something that would check a site like

View 22 Replies

VS 2010 System Keys Names?

Oct 11, 2010

What names / number of the following keys (marked in red):

View 13 Replies

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 - Send Keys (Chat Spammer)

Dec 26, 2011

I've finished my chat spammer, and it's not working the way it's suppose to (In Game). However, it works properly in chat rooms. Instead of it spamming once per line, it clumps the messages together.

If FormOptions.ChFilter.Checked = False And FormOptions.CHad.Checked = False And FormOptions.ChTroll.Checked = False Then
SendKeys.Send(TxtSpam.Text)
SendKeys.Send("{enter}")
ElseIf FormOptions.CHad.Checked And FormOptions.ChFilter.Checked = False
[Code] .....

It works if I don't check anything (This code):
If FormOptions.ChFilter.Checked = False And FormOptions.CHad.Checked = False And FormOptions.ChTroll.Checked = False Then
SendKeys.Send(TxtSpam.Text)
SendKeys.Send("{enter}")
But the "troll" ones with multi-lines don't.

View 1 Replies

VS 2010 Click Button For Keys On Keyboard?

Sep 9, 2011

I want to know if i click button1 then it's auto press keys.Tab and then keys.Enter.

View 5 Replies

VS 2010 Keylogger Won't Recognize <, >. /? Type Of Keys

Apr 23, 2012

i am trying to make a proper keylogger. i have programmed the qwer QWER 123 and !@# keys but it wont read the ,< .> type ok keys for some reason, how to make the program read these keys

View 10 Replies

VS 2010 Send Keys Function Keeps Ctrl V

Jul 1, 2011

I have a loop that takes text from a richtexbox, and pasts it into a field on a html web form within a webbrowser control.When i run my code, it goes to where it copy/pastes the text, however it keeps doing this over and over and over and over again, it wont just copy and paste 1 time, and stop.[code]

View 1 Replies

VS 2010 Some Keys Seem To Not Exist When Reading Registry

Aug 24, 2011

I am trying to read keys and values from the registry. The keys I am looking for do exist in the registry, but the variable mRegKey is still Nothing after the first line is run.I have also tried different keys under HKLMSoftware, some work and some dont. HKLMSoftwareATI is found but HKLMSoftwareOracle is not (both are shown in regedit).[code]

View 3 Replies

VS 2010 Using Up / Down Arrow Keys To Move Through Textboxes

Feb 25, 2011

How would I go about doing this? I was thinking I could possibly use Tab index?

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

VS 2010 : Make Arrow Keys Move An Object?

Apr 18, 2012

there is this picture on the form How would you make arrow keys move the object around the screen?Also how would you make buttons correspond to arrow keys?

View 3 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







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