Results 1 to 2 of 2

Thread: Blocking Alt+F4.....

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    Hi,

    Im running a .avi file in my VB application using the ActiveMovie control. I've set the FullScreen property to True. While the .avi file is running I need to block all input from the user. I've kinda managed this.....only, I haven't been able to block the Alt+F4 combination. Can anyone help me out here?

    Joacim,
    Using the queryUnload event works fine when the form has the focus. But I need to block Alt+F4 when the .avi file is running.

    Thanx,
    Ramya.

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Try this, I haven't tried it myself because there's something wrong with my ActiveMovie control;
    Code:
    Private Sub ActiveMovie1_KeyDown(KeyCode As Integer, Shift As Integer)
        If KeyCode = vbKeyF4 And (Shift And vbAltMask) = vbAltMask Then
            KeyCode = 0
        End If
    End Sub
    [Edited by Joacim Andersson on 03-27-2000 at 09:40 AM]

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