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 ...
3 1366 TRScheel 638
Recognized Expert Contributor
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
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
TRScheel 638
Recognized Expert Contributor
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 the objects around on the form.
This is where the problem is, I have implemented this
using the mouse_down, mouse_up and mouse_move events of
the form. When user selects a object, I receive the
|
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 the mouse is not over my
program.
One idea i had was make a child form that was transparent and use the
MouseMove event to keep that transparent window under the mouse but the
transparent window did not catch the MouseMove event.
I also tried...
|
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
receiving MouseMove updates -- whether the pointer is over the form or
not (this being the crucial part) -- until the next MouseDown. It's
easy to receive MouseMove events while the pointer is over the form
but not when the pointer leaves. (Forms...
|
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 button when they are NOT
Clicked but the cursor enters their boundary.
This setup works fine. If the mouse cursor enters the button on the first
form the image changes and if the button is clicked the first form
disappears and the other form...
|
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 order to be able to move that Form around with the mouse I have to implement EventHandlers for the MouseDown, MouseUp and MouseMove event.
Now the problem I have is these Events will never be fired because the entire dialog is covered by the...
| |
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 areas). This means that if
the mouse is currently inside the form's client area and it enters a
child, a MouseLeave event will be generated on the form.
One little trick to overcome this is to do a point-in-rectangle test
inside the MouseLeave...
|
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 the form
transparency key to the form backcolor), but i dont want the mouse
clicks to pass through my form and on to the windows behind.
Can i perhaps do this with a message filter? by deregistering the
filter that must already be there to...
|
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.
|
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 WM_CREATE when windows start creation, this task is useful for some application , for example you can create new UI Control at run time using Form1.Control.add("vb.CommandButton","Cmd1") Function and you can handle command button event by WM_COMMAND Message...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |