?
Solved

VB6 and preventing  key combinations like ctrl+alt

Posted on 2003-03-05
4
Medium Priority
?
350 Views
Last Modified: 2006-11-17
In VB6, how can I prevent ctrl+alt or alt+tab key combinations from reaching the Win2k OS(message handler)
0
Comment
Question by:Semple
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Accepted Solution

by:
brookd earned 300 total points
ID: 8074319
This requires low level hooks which is beyond my scope at this time... but here are some excellent links..

http://www.mvps.org/vbnet/index.html?code/hooks/lowlevelkeyboardproc.htm

http://www.developer.com/net/vb/print.php/1502401

-- David
0
 
LVL 3

Expert Comment

by:Da_Weasel
ID: 8074502
Basicly you can't do this in VB.  Some people have made pseudo key loggers, but none of the ones in pure VB, can be relied on to accuratly give you the info you need with out the use of outside dlls.
0
 

Expert Comment

by:brookd
ID: 8074602
Here's what looks like a really good post , with even free source...


http://archive.devx.com/premier/mgznarch/vbpj/1999/08aug99/cb0899.pdf

--David
0
 

Author Comment

by:Semple
ID: 8074731
Thanks for the response guys.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question