I did this with PictureBoxes.
1. On MouseDown event, the start position of the PictureBox is taken:
iMStartx = Mouse.X
iMStarty = Mouse.Y
2. On MouseMove event, the sub is:
("Rahmen" are the PictureBoxes, and "Ziel" means target)
PUBLIC SUB Rahmen_MouseMove()
DIM Zielx AS Integer
DIM Zie
On 18/01/10 19:27, Fiddler63 wrote:
> I'm trying to move an object within a form.
> The following code allows me to move the form, but not the object within the
> form, ie when I click on the mouse I can move the form around on the screen,
> but no the object within the form.
>
> Any suggestions ?
On 18/01/10 19:27, Fiddler63 wrote:
> I'm trying to move an object within a form.
> The following code allows me to move the form, but not the object within the
> form, ie when I click on the mouse I can move the form around on the screen,
> but no the object within the form.
>
> Any suggestions ?
I would like the user to be able to move the drawingarea around within the
form.
The drawingarea(s) will eventuality be created dynamically, when I get
around to understand that part as well.
Image a bunch of boxes like a mindmap, which you can move around on the
screen (within the form).
Kim
what do you want to do exactly... i don't understand :/ (english is
not my primary language !)
2010/1/18 Fiddler63 :
>
> I'm trying to move an object within a form.
> The following code allows me to move the form, but not the object within the
> form, ie when I click on the mouse I can move the fo
I'm trying to move an object within a form.
The following code allows me to move the form, but not the object within the
form, ie when I click on the mouse I can move the form around on the screen,
but no the object within the form.
Any suggestions ?
PRIVATE $MX AS Integer
PRIVATE $MY AS Integer