Click here to Skip to main content
13,042,421 members (130,757 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi Everyone!

Im workin on a WinForms application, in which I have to perform multiple different tasks on images.

I made a WinForms where I can load images and I can display these imaes in a PictureBoxIpl. This PictureBoxIpl is made by the opencvsharps Userinterface.dll.
The application is working nicely, I can load the images.
I want to achieve that I can mark squares in this PictureBoxIpl with the mouse, but I dont know how to "track"
the mouse movements inside PictureBoxIpl.
If you know, please tell me which are the methods to perform this operation.
I thought it would be something like this :
wImage.OnMouseCallback += delegate(MouseEvent ev, int x, int y, MouseEvent flags)

but in this PictureBoxIpl I cant find the PictureBoxIpl.OnMouseCallback method.
Posted 1-Apr-12 2:57am
Updated 1-Apr-12 3:01am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Since it looks like the control is inherited from PictureBox you should be able to use normal PictureBox events, such as: Control.MouseMove Event[^]
nagyervin89 1-Apr-12 9:15am
I think You'r right I try it!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 1 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100