Moving a control on form with mouse event?

M

Mark Gaeth

I am new to VB.Net and have done a little VB3 &4. Whith the advent of the
Net aspect oto OOP I would like to use a standard winform that a user can do
several things.

1. Place predetermined line shapes on the form and save their location with
the closing of the form.

2. I would like to add a saveable text/label control that is movable around
the form with the mouse. In other words I wlll want to drag the control from
one spot on the form to another location. Preferable the locations will dock
to the line image drawing on the form back ground.

Is this a simple matter or is it very complex? Thanks for any thoughts or
ideas to try.

Dazed and confused but loving the challange just the same.

Mark Gaeth
Decatur,IN
 
M

Mark Gaeth

Thanks Herfried,

While I am not well versed in the german lanhuage I was able to read the
code to see were I was going wrong. I was trying to use the
cursor.current.postion..X for my arguments when I should have been using
e.x. Thanks for the tip/suggestion. Now to make many of these objects move
around and save to form an image.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top