[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

Controls in scrollable panel.

objectref

10/20/2004 1:13:00 PM

hi to all,

i have a picture box in a scrollable panel control.
I can drag and drop the picture box inside the panel to the correct position
by taking the MousePosition point and evaluating the relative edge of the
main form with PointToClient method.

So far so good.
The problem is that if i scroll down the panel a little, my picture box
cannot be dropped o the panel at the correct place.
I need a way to compute the relative distance (i think) between the new
panel surface and the main's form.

Has anybody any ideas how i can do that ?


thanks a lot for any help