Alt Tab and Ctrl Alt Del 
Author Message
 Alt Tab and Ctrl Alt Del

I have a front end written in Visual Basic 3 Professional interface on to
an Access 2 database. I want to prevent users tabbing out of this VB
application by using Alt Tab. It would also be nice to be able to disable
Ctrl Alt Delete.

Can anybody advise me on how to implement this, please?

Peter Dawson



Mon, 17 May 1999 03:00:00 GMT  
 Alt Tab and Ctrl Alt Del

Why? What is so important about your software that I should not be allowed to
Alt-Tab to Word or any other program without shutting it down?  What is I
suddenly need to send or receive a fax?

And as far as the three finger salute is concerned, can you guarnatee that my
computer will never lock up using your software?

I know that you and I create the world's greatest software, but if you include
features like that I don't want anything to do with yours. It is MY computer and
I want to use it my way, not yours.

Anybody besides me feel this way?


  >I have a front end written in Visual Basic 3 Professional interface on to
  >an Access 2 database. I want to prevent users tabbing out of this VB
  >application by using Alt Tab. It would also be nice to be able to disable
  >Ctrl Alt Delete.

  >Can anybody advise me on how to implement this, please?

  >Peter Dawson



Tue, 18 May 1999 03:00:00 GMT  
 Alt Tab and Ctrl Alt Del

You are right when considering running his software on YOUR computer.
There are lots of cases, however, when you might be running his software on
HIS computer and then he has every right to restrict what you can get at.
A couple of examples might be the terminals you sometimes see in bookstores
or libraries which replace card catalogs with on-line lookups.  These are
open to public use by anybody but the users shouldn't be using ALT-TAB or
CTRL-ALT-DEL for any reason.  The same is true for situations in schools
which provide on-line registration/etc through public-access terminals.



Quote:
> Why? What is so important about your software that I should not be
allowed to
> Alt-Tab to Word or any other program without shutting it down?  What is I
> suddenly need to send or receive a fax?
> And as far as the three finger salute is concerned, can you guarnatee
that my
> computer will never lock up using your software?
> I know that you and I create the world's greatest software, but if you
include
> features like that I don't want anything to do with yours. It is MY
computer and
> I want to use it my way, not yours.
> Anybody besides me feel this way?

>   >I have a front end written in Visual Basic 3 Professional interface on
to
>   >an Access 2 database. I want to prevent users tabbing out of this VB
>   >application by using Alt Tab. It would also be nice to be able to
disable
>   >Ctrl Alt Delete.
>   >Peter Dawson



Tue, 18 May 1999 03:00:00 GMT  
 Alt Tab and Ctrl Alt Del

Quote:

> Why? What is so important about your software that I should not be allowed to
> Alt-Tab to Word or any other program without shutting it down?  What is I
> suddenly need to send or receive a fax?

> And as far as the three finger salute is concerned, can you guarnatee that my
> computer will never lock up using your software?

> I know that you and I create the world's greatest software, but if you include
> features like that I don't want anything to do with yours. It is MY computer and
> I want to use it my way, not yours.

> Anybody besides me feel this way?


>   >I have a front end written in Visual Basic 3 Professional interface on to
>   >an Access 2 database. I want to prevent users tabbing out of this VB
>   >application by using Alt Tab. It would also be nice to be able to disable
>   >Ctrl Alt Delete.

>   >Can anybody advise me on how to implement this, please?

>   >Peter Dawson

i am writing an application for a customer who doesn't want the user (an
employee) to use the computer for any other purpose or to be able to access
the data other than by my interface...

good reason to disable this stuff... and i would be interested in an answer
as well.....

-- woody



Wed, 19 May 1999 03:00:00 GMT  
 Alt Tab and Ctrl Alt Del


<snip>

Quote:


>>   >I have a front end written in Visual Basic 3 Professional interface on to
>>   >an Access 2 database. I want to prevent users tabbing out of this VB
>>   >application by using Alt Tab. It would also be nice to be able to disable
>>   >Ctrl Alt Delete.

>>   >Can anybody advise me on how to implement this, please?

>>   >Peter Dawson

>i am writing an application for a customer who doesn't want the user (an
>employee) to use the computer for any other purpose or to be able to access
>the data other than by my interface...

>good reason to disable this stuff... and i would be interested in an answer
>as well.....

>-- woody

If the Windows on that machine is to be used for no other purpose than
to run your app., then make your app the Shell, replacing the Program
Manager. Just change the Shell= line in the system.ini from
program.exe to myapp.exe. For maintenance purposes, you can always
change it back, fix Windows, and go back to myapp.exe as shell.

Don't know about CTRL+ALT+DELETE... (Perhaps it's in the archives at
Dejanews?)



Thu, 20 May 1999 03:00:00 GMT  
 Alt Tab and Ctrl Alt Del

Is it possible to recognize the ctrl-alt-delete?  From what I
understand this is the way a database gets corrupted when mulitple
users are using it and they turn off the computer or ctrl-alt-delete
out of it.  I hope I've solved most of this by using recordsets from
VB, but it would be nice to warn a user "The MTS System is still
running, if possible please shut it down before using ctrl-alt-delete
to reboot system."  Is this possible?

Thanks,

Julie



Sat, 22 May 1999 03:00:00 GMT  
 Alt Tab and Ctrl Alt Del


Quote:
>I have a front end written in Visual Basic 3 Professional interface on to
>an Access 2 database. I want to prevent users tabbing out of this VB
>application by using Alt Tab. It would also be nice to be able to disable
>Ctrl Alt Delete.

>Can anybody advise me on how to implement this, please?

>Peter Dawson

This is a piece of code I used when I wrote a Screensaver in VB4.0 :-

Private Sub Form_KeyDown(Keycode As Integer, Shift As Integer)

Dim Handle As Integer
Dim ShiftDown, AltDown, CtrlDown

Const SHIFT_MASK = 1
Const CTRL_MASK = 2
Const ALT_MASK = 4

ShiftDown = (Shift And SHIFT_MASK) > 0
CtrlDown = (Shift And CTRL_MASK) > 0
AltDown = (Shift And ALT_MASK) > 0

If ShiftDown Or CtrlDown Or AltDown Then

 Put whatever code you need in here

End If
End Sub

I used it to trap the ALT key to stop users from ALT & TABbing past my
Screensaver onto other programs, but it traps SHIFT and CTRL as well.

Hope this is of some use !

Woodster



Sun, 23 May 1999 03:00:00 GMT  
 Alt Tab and Ctrl Alt Del


Quote:

>Re alt ctrl and del:

    I set KeyPreview to TRUE on form properties and then capture the
KeyDown event on the form.  With KeyPreview set to TRUE all KeyDown
events go to the form first before going to the control with focus.
KeyDown returns a Key integer and a Shift integer for shift 0001, 0010,
and 0100, are returned showning the state of the three keys.  You can
test if all three (1,2,and 4) are returned and have the form respond
as you like even changing a 1 to a 4 etc.



Mon, 24 May 1999 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Unable the use of Alt-Tab and Ctrl-Alt-Del

2. How to block ALT+TAB and CTRL+ALT+DEL key

3. How to block ALT+TAB and CTRL+ALT+DEL key

4. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

5. Disable ctrl+esc ctrl+alt+del alt+tab

6. Block System Key like ALT+TAB, Ctrl+Alt+Del, Ctrl+Esc key

7. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

8. CTRL-ALT-DEL, ALT-TAB

9. CTRL-ALT-DEL, ALT-TAB

10. CTRL/ALT/DEL and ALT/TAb

11. CTRL-ALT-DEL, ALT-TAB

12. Disable Ctrl Alt Del & Alt Tab

 

 
Powered by phpBB® Forum Software