473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

System Hook

I have been developing in VB6 for years. I am converting to VB.net. I was wondering if it is possible to create a System hook in VB.net. I know that I VB6, I could not, so I created one in C++. If it is possible, could you please provide an example. Thanks!

Also, could you please provide good resources (books or online articles/tutorials) that would be good for someone who is advanced VB6 programmer converting to VB.net. Thanks!
Nov 20 '05 #1
3 4183
* "=?Utf-8?B?UGF0cmljaw==?=" <an*******@discussions.microsoft.com> scripsit:
I have been developing in VB6 for years. I am converting to VB.net.
I was wondering if it is possible to create a System hook in VB.net. I
know that I VB6, I could not, so I created one in C++. If it is
possible, could you please provide an example. Thanks!
For example, a keyboard hook:

<URL:http://www.developer.com/net/net/article.php/11087_2193301_1/>
Also, could you please provide good resources (books or online
articles/tutorials) that would be good for someone who is advanced VB6
programmer converting to VB.net.


Let's wait what the others say...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
I assuming your talking about Global Hooks? Any particular kind? I've had
this discussion with a couple people never found an answer I was 100%
satisfied with.

From my undersatnd, generally no, because you can't inject the DLL into
other processes.

But for keyboard hooks you can. At least the way I undersatnd it you can.
However, I was told you can't do it with a mouse... here's and article that
may help.

http://www.developer.com/net/net/art...1087_2193301_2
"Patrick" <an*******@discussions.microsoft.com> wrote in message
news:5A**********************************@microsof t.com...
I have been developing in VB6 for years. I am converting to VB.net. I was wondering if it is possible to create a System hook in VB.net. I know
that I VB6, I could not, so I created one in C++. If it is possible, could
you please provide an example. Thanks!
Also, could you please provide good resources (books or online

articles/tutorials) that would be good for someone who is advanced VB6
programmer converting to VB.net. Thanks!
Nov 20 '05 #3
Programming Microsoft Visual Basic.NET Core Reference by Francesco Balena is
a really good book from my point of view, coveres everything from simple
stuff to way more advanced topics
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c6************@ID-208219.news.uni-berlin.de...
* "=?Utf-8?B?UGF0cmljaw==?=" <an*******@discussions.microsoft.com>

scripsit:
I have been developing in VB6 for years. I am converting to VB.net.
I was wondering if it is possible to create a System hook in VB.net. I
know that I VB6, I could not, so I created one in C++. If it is
possible, could you please provide an example. Thanks!


For example, a keyboard hook:

<URL:http://www.developer.com/net/net/article.php/11087_2193301_1/>
Also, could you please provide good resources (books or online
articles/tutorials) that would be good for someone who is advanced VB6
programmer converting to VB.net.


Let's wait what the others say...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alex | last post by:
I am trying to determine if C# has the capabilities to listen for system events when the application does not have the window's focus. I am writing a windows application that I would like to run...
0
by: BFree | last post by:
I need to develop a system hook that will trigger whenever a disk is inserted into the system (needs to cover all possible disks.) There's got to be a windows message that I can watch for, but I...
1
by: Michael Roper | last post by:
Well, actually I'm not sure that's what I need. What I'd like to do is write an app for the tray that can monitor any app that gets launched and do a 'window size and position' on it based on...
1
by: murl | last post by:
I have been reading alot about local system hooks, and am able to inject a c# built system hook into a thread outside of my app but unsuccessfully, the program crashes(ie: notepad keyboard hook for...
9
by: Jesse | last post by:
Hi All, I want to be able to make an engine in VB.Net which creates a bridge between applications and the system registry, so before it's processed by the O/S, I want to be able to have the...
10
by: Crouchie1998 | last post by:
Hello To All You Real Programmers Out There!! There is an application called: "Tray It" Webpage: ---------- http://www.teamcti.com/trayit/trayit.htm Direct Download:
7
by: jpierson | last post by:
Hi, I am tryin to create a keyboard hook that sends the keystroke ctrl + pause/break. I haven't used keyboard hooks before so I'm not too sure how to use them public int MyKeyboardProc(int...
2
by: Gambero | last post by:
Hi, i want to do system hook WH_SYSMSGFILTER, my code is: IntPtr hMod = Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()); //install hook hSysMsgHook =...
22
by: schneider | last post by:
I need to hook the system mouse down event. I'm trying to replicate how a context menu hides when the mouse clicks outside of the control. Thanks, Schneider
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.