|
-
Sep 28th, 2007, 09:36 PM
#1
Thread Starter
New Member
How to disable the Ctrl+Alt+Del ShortcutKey,windows Button,and cursor of the mouse
I have two probloems:
1. I have an application here and I don't want the mouse cursor gets out on the form unless you click the cancel button. Can you please help me how to figure this out guys...
2. Is there a way to let not use the Ctrl+Alt+Del shortcut n our keyboard and also the windows button in the keyboard?
-
Sep 29th, 2007, 12:49 AM
#2
Re: How to disable the Ctrl+Alt+Del ShortcutKey,windows Button,and cursor of the mouse
for your first question you can use the clipCurser() api.
Code:
Private Declare Function ClipCursor Lib "user32" (lpRect As Any) As Long
Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Sub Command1_Click()
Dim rt As RECT
GetWindowRect Me.hwnd, rt
ClipCursor rt
End Sub
-
Sep 29th, 2007, 01:27 AM
#3
Re: How to disable the Ctrl+Alt+Del ShortcutKey,windows Button,and cursor of the mouse
Have a look at this one.This site was mentioned on yesterday.But I couldnot able to find that post ?
Please mark you thread resolved using the Thread Tools as shown
-
Sep 29th, 2007, 02:09 AM
#4
PowerPoster
Re: How to disable the Ctrl+Alt+Del ShortcutKey,windows Button,and cursor of the mous
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|