[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Enable/disable <Alt-Tab>

Hi,

I use the following function which enable/disable the following key combinations
<Ctrl-Alt-Del>
<Ctrl-esc>
<Alt-s>
<Alt-Tab>


Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long

Sub DisableCtrlAltDelete(bDisabled As Boolean)
    Dim x As Long  

    x = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
 
Now I want to make <Alt-Tab> to be
enabled & rest other disabled.

Kindly let me know the solution.

Thanking you
regards

Vipul Shah
0
vipul_viraj
Asked:
vipul_viraj
  • 5
  • 4
1 Solution
 
mcriderCommented:
This Microsoft KB article should solve your problem...

HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98
http://support.microsoft.com/support/kb/articles/Q161/1/33.asp 

Cheers!
0
 
mcriderCommented:
Also see...

PRB: Windows 95/98 Ignores ALT+TAB from SendKeys in VB
http://support.microsoft.com/support/kb/articles/Q129/8/39.asp 
 
Cheers!
0
 
vipul_virajAuthor Commented:
The solution was already been framed
with codes as my question to you

The solution provided disables
both <Ctrl-Alt-Del> & <Alt-Tab>

WHAT I WANT IS

disable -----> <Ctrl-Alt-Del>
  &
enable  -----> <Alt-Tab>

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
vipul_virajAuthor Commented:
The solution was already been framed
with codes as my question to you

The solution provided disables
both <Ctrl-Alt-Del> & <Alt-Tab>

WHAT I WANT IS

disable -----> <Ctrl-Alt-Del>
  &
enable  -----> <Alt-Tab>

0
 
mcriderCommented:
I wanted you to read both articles.

<Ctrl-Alt-Del> & <Alt-Tab> are BOTH enabled and disabled with the same API.  There is no API to disconnect one or the other.

Also the second article tells you you can not send ALT-TAB to the operating system in 95/98 systems.


Cheers!
0
 
vipul_virajAuthor Commented:
O.K.
Can I assign HOTKEY's to no. of application to activate on press of a
designated key's for each application,
WHILE DISABLING both <Ctrl-Alt-Del> & <Alt-Tab>.


0
 
mcriderCommented:
When <Ctrl-Alt-Del> & <Alt-Tab> are disabled, they are not passed on to VB... You can't accept them in the KeyDown/KeyUp events.
0
 
vipul_virajAuthor Commented:
O.K.

Is there any way to disable processing of the START BUTTON on the TASK BAR
(i.e <Ctrl-Exc> or <Alt-S>) and
still work with <Alt-Tab>


0
 
mcriderCommented:
Sorry, but no...

Cheers!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now