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