From: Dee Earley on
On 08/11/2009 19:35, Mojo wrote:
> Hi All
>
> I thought this would be simple, but I was oh so wrong :0)
>
> All I wanted to do was create about 30 labels on a form and code these
> labels so that at run time I could move them around to get the right
> positions on a form (actually inside a picture box) and then a text box
> would give me the exact top, left (and width if it can be resized) of what
> I've just set.
>
> I can't even get the bloody label to move. I see the drag box, but when I
> let go the label hasn't moved from it's original location!!

You will need to handle the mousedown/move/up events and move it yourself.

Or make it a picturebox (or similar) and use:
http://hashvb.earlsoft.co.uk/Dragging_windows

--
Dee Earley (dee.earley(a)icode.co.uk)
i-Catcher Development Team

iCode Systems
 | 
Pages: 1
Prev: Tutorial Forum
Next: ShellExecute