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


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

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

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

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

Disable A Timer - Will Finish The Process And Then Disable Or Will It Immediately Disable Without Completing Process?

Dec 22, 2011

I am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example

[Code]....

I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.

View 3 Replies

C# - Mdi Children Changed In .Net?

Apr 15, 2010

Is there a simple way of tracking the change of an Mdi's children i.e. when they are created and closed, something like an event OnMdiChildListChanged (I realise this doesn't actually exist).

I am also aware that I could have a method within my Mdi that handles the creation of child forms and logs the state of them or even create an Interface that defines that a child form has a "NotifyParent" method that is then called on close of the form, but i was wondering if there was any built in events that i could plumb into?

View 3 Replies

Get The Children Of A Panel?

Aug 17, 2009

How do you get the children of a panel?

View 3 Replies

MDI Parent And Children

Jun 3, 2011

I have four children in a parent container. Each child form is a test for the user to type correct answers into text boxes. Option to open each form is on a menu strip in the parent. In form load, I have disabled all but the first form option. I only want the second form to become available if the first form answers are correct. I would like to figure this out on my own as much as possible. I have searched on line but since I am not sure what to ask, I have not found and answer. Can someone get me started in the right direction? Perhaps some reading that would explain how to go about this, or what I should be typing into google to get what I'm looking for.

[Code]...

View 1 Replies

Not Loading All Children XML

May 6, 2012

[code]...

I'm sifting through the dump of AniDB titles and everything works except that it only sees 7161 elements instead of 9200. Anyone have any idea why? It's not calling an exception on the load method as if something is wrong. Even when I change it to just take the root element and then get the count of children, it gives 7161. Like it doesn't even see the last 2000.

View 3 Replies

Disable Right Click And To Disable The Start Button And Task Bar?

May 16, 2009

to disable right click and to disable the start button and task bar?

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

Changing Focus Between MDI Children

Jun 3, 2011

A common problem I have come across when migrating from VB6 to VB.NET is that to change the focus between MDI children, you can't just click any control to give that child focus, you must click its title bar. The solution that I have found works is to enter the child form's Designer and change the following:

Code:
#Region "Windows Form Designer generated code "
<System.Diagnostics.DebuggerNonUserCode()> Public Sub New()
MyBase.New()
'This is required by the Windows Form Designer.
InitializeComponent()
[Code] .....

This needs to be done on all child forms in the project. If one form does not have the fix, once it's opened, the bug will return even when the form is closed.

View 1 Replies

Find A Treenode Children?

Oct 31, 2011

I start with VB 2010 since a short time.I need to check in a Treeview if a node has children or not.In VB 6 there was the property clildren that allow to understand this.

View 1 Replies

Removing All Grid's Children In WPF?

Apr 20, 2011

I'm trying to remove all children (and sub-children) of a Grid in WPF (I'm really new to the whole WPF business). Is there a good way of doing it programmatically? I need to do this so that I could leave an empty canvas (Grid) at one point and draw other stuff on it.

View 1 Replies

Treeview Not Checking ALL Children

Aug 24, 2010

Im new to treeviews so I hope this is not posting a problem that has been covered. I want all the children of a checked parent to also be checked. I have found various snippets that can achieve this but only for one or two levels. When I expand further than 2 levels the children are not checkeds. What am I missing? I have managed to find this piece of code that I am using in both the "AfterExpand" and the "AfterChecked" events to achieve the result. There must be a better way.

[Code]...

View 5 Replies

Using The Parents And Children Forms?

Apr 29, 2009

i make a parent and children form and when i show children form and drag into parents form , when parents is little to show the children form , parents form enables the scrollbar and then show the chilren form better , how can i do something that avoid this status ( don't show scrollbar into parents form when the children form is bigger than it)?

View 1 Replies

Wpf - Add Children To Wrap Panel?

Oct 1, 2011

I'm adding rectangles to a wrap panel like this:

For i = 0 to 20
wrapPanel.children.add()
next

I would like to use this loop because I don't want to specify the limit:

Do
wrapPanel.children.add()
Loop

But how can I break the loop when the wrap panel is filled? For example the loop would stop when the wrap panel can't display a rectangle in its full height or width.

View 1 Replies

.Net - Dispose Correctly Children Object

Aug 19, 2010

From code analysis (Visual studio), I got this warning:

[Code]...

The warning disappear but then the literal control isn't anymore being displayed on the page... EDIT Note that the code come from a Microsoft web page: [URL]

View 1 Replies







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