473,396 Members | 2,098 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,396 software developers and data experts.

How Can I handle Mouse events over a Form with Trancperancy Key ؟

Hi :
I had a Form and I put the property Transparency Key to "Control" so some of the form will be hidden ....
but I still want to handle User Mouse Clicks on the hidden part of the form ... How Can I ?

thanks ...
Jul 6 '07 #1
3 1349
TRScheel
638 Expert 512MB
Hi :
I had a Form and I put the property Transparency Key to "Control" so some of the form will be hidden ....
but I still want to handle User Mouse Clicks on the hidden part of the form ... How Can I ?

thanks ...
Off the top of my head, here's a couple options:

1) Dont draw the object
2) Catch all the mouse messages to the program and check if a click happens inside the control, and if so fire the OnClick event
3) DirectInput, and do the same as #2
Jul 6 '07 #2
Off the top of my head, here's a couple options:

1) Dont draw the object
2) Catch all the mouse messages to the program and check if a click happens inside the control, and if so fire the OnClick event
3) DirectInput, and do the same as #2
thanks but your answer does not help ...
I wrote the Click_Event of the form , but when the user click the hidden part of the form , it does n't call Click_Event , it moves the focus to the other applications that resides behind my form !!!!
what I mean : do I have to use system hooks to catch all Mouse Events that happens on the system , or there is another solution ??
thanks
Jul 6 '07 #3
TRScheel
638 Expert 512MB
thanks but your answer does not help ...
I wrote the Click_Event of the form , but when the user click the hidden part of the form , it does n't call Click_Event , it moves the focus to the other applications that resides behind my form !!!!
what I mean : do I have to use system hooks to catch all Mouse Events that happens on the system , or there is another solution ??
thanks
From what you are describing, it seems you would need either the hook or directinput. Someone might have another answer for you though.
Jul 6 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: suhas | last post by:
Hi, I have an MDI app that allows user to create flowcharts. User can drag flowchart objects (squares, rectangles, elipses, etc) from the toolbar and put on a form. They should be able to move...
3
by: Logan Mckinley | last post by:
I need to be able to detect mouse movement even when it is not over my application. I can get the mouse cords using MousePosition but I am not sure if there is an event that hits my program when...
3
by: Jason | last post by:
I'm trying to implement some pretty basic behavior in c#/.net 1.1 Forms but can't seem to find all the requisite pieces. When a user clicks on the background of the form, I want the app to start...
0
by: StriderBob | last post by:
In a simple two form project, use a button on each form to Show() the other form and Hide() the current form. Add MouseEnter and MouseLeave events to both buttons so they change the image on each...
0
by: hmm | last post by:
Hi all I have two problems: Problem #1: I'm using a .NET Form with the property 'FormBorderStyle' set to 'None'. The idea is to completely cover the area of that Form with a UserControl. In...
4
by: cb.brite | last post by:
Hello, I have tried this using the MouseEnter/MouseLeave events. However these events do not really refer to the rectangular shape of the form, but the client area (form area minus children...
2
by: pigeonrandle | last post by:
Hi, I am trying (with little (no) success) to create a transparent form that can capture mouse events. Put another way, i would like to show the other windows that are behind my form (like setting...
2
by: Boki | last post by:
Hi All, We can process the mouse/keyboard events by handling, however, how to create a event on a target form ( ex: webbrowser ) ? Thanks! Best regards, Boki.
0
AHMEDYO
by: AHMEDYO | last post by:
Hi Every one... With this visual Basic 6.0 Code you can handle more event that visual basic Support as Mouse wheel and hover or you can control event before VB IDE Default Windows proc as...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.