Trapping Mouse Movements in Picture Box

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello All,

I am working on a VB6 app used to draw some engineering diagrams. The
app uses the picturebox heavily. My client wants to be able to move the
lines drawn in the picturebox using the mouse. For this I need to be
able to convert the line coordinates inside the picture box to the
corresponding screen coordinates and the use some kind of a HitTest to
verify the coordinates and move the redraw the line. Does anybody have
any idea on how to simulate mouse clicks inside a picture box and
convert them to screen coordinates?

Thanks in advance,
Chris

.



Relevant Pages

  • Re: Trapping Mouse Movements in Picture Box
    ... Sign the petition to Microsoft. ... I am working on a VB6 app used to draw some engineering diagrams. ... lines drawn in the picturebox using the mouse. ... corresponding screen coordinates and the use some kind of a HitTest to ...
    (microsoft.public.vb.general.discussion)
  • RE: Trapping Mouse Movements in Picture Box
    ... in your web browser to see if this is the sort of thing ... Of course the same thing can be done with MetaDraw ... >> lines drawn in the picturebox using the mouse. ... >> corresponding screen coordinates and the use some kind of a HitTest to ...
    (microsoft.public.vb.general.discussion)
  • Re: Trapping Mouse Movements in Picture Box
    ... > I am working on a VB6 app used to draw some engineering diagrams. ... My client wants to be able to move ... > the lines drawn in the picturebox using the mouse. ... > corresponding screen coordinates and the use some kind of a HitTest to ...
    (microsoft.public.vb.general.discussion)
  • RE: Trapping Mouse Movements in Picture Box
    ... I'd suggest that VB Picturebox is not the best control for your application. ... ' In response to a button click or menu on your app, ... > corresponding screen coordinates and the use some kind of a HitTest to ...
    (microsoft.public.vb.general.discussion)
  • Re: thread error
    ... > Are you using multiple threads? ... It 's a client - server program. ... There is a new PictureBox() created and shown. ...
    (microsoft.public.dotnet.languages.vb)