PC Review


Reply
Thread Tools Rate Thread

Capture the mouse

 
 
Dave
Guest
Posts: n/a
 
      19th Oct 2004
Hi,
I have a control on my vb app form that dont cath a mouse event`s how can i
catch a mouse event on that control and pass it to a function in my main
form???
In VB-6 i used the setcapture api function!
Thanks


 
Reply With Quote
 
 
 
 
Gerald Hernandez
Guest
Posts: n/a
 
      19th Oct 2004
It looks like you might have more than one question here.
What events in particular are you interested in?
You can temporarily capture certain mouse events by using the
Control.Capture property.
But the best implementation would depend on what you really want to capture.

As far as processing events. You could call the other function from the
controls event handler. Or you can attach an additional handler to the
controls event and process it in your form. Plus many other ways of dealing
with this.

Give us more info.

Gerald

"Dave" <(E-Mail Removed)> wrote in message
news:e$(E-Mail Removed)...
> Hi,
> I have a control on my vb app form that dont cath a mouse event`s how can

i
> catch a mouse event on that control and pass it to a function in my main
> form???
> In VB-6 i used the setcapture api function!
> Thanks
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      20th Oct 2004
Dave,

What control does not catch a mouse event?

The "click" is a base event from all controls

Cor


 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      21st Oct 2004
The quick time control that play AVI!!!
anyway how can i do that in vc-6 icouls use the setcapture api in .net i
cant manage wite the capture property,
can you send me a pice of code how ton do that?
Thanks
"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Dave,
>
> What control does not catch a mouse event?
>
> The "click" is a base event from all controls
>
> Cor
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
webbrowser control: how to capture event of mouse hovering over thelink or mouse click events in webbrowser only? P-GPS Microsoft VB .NET 1 15th Dec 2007 11:31 AM
How to capture Mouse Single click and mouse double click event Sakharam Phapale Microsoft C# .NET 1 10th Feb 2005 11:20 AM
capture the mouse Dave Microsoft C# .NET 3 9th Feb 2005 08:53 AM
MOUSE CAPTURE Dave Microsoft Dot NET Framework 1 20th Oct 2004 04:42 AM
How to capture the mouse? Siegfried Heintze Microsoft Dot NET 0 24th Sep 2003 08:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:58 PM.