Capture the mouse

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

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
 
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,

What control does not catch a mouse event?

The "click" is a base event from all controls

Cor
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top