Results 1 to 4 of 4

Thread: How to disable the Ctrl+Alt+Del ShortcutKey,windows Button,and cursor of the mouse

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Location
    Cebu City
    Posts
    13

    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?

  2. #2
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    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

  3. #3
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    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

  4. #4
    PowerPoster
    Join Date
    May 2006
    Posts
    2,988

    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
  •  



Click Here to Expand Forum to Full Width