Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

DRAG CONTROL SMOOTHLY AT DESIGN TIME

Hi All,

I create a form and I want to drag a control that space between control could be moved smoothly and as close as possible between controls.

How could I do it ?

Thank you.
Avatar of kaufmed
kaufmed
Flag of United States of America image

Are you saying you would like to turn off the "snap-to" functionality--at least briefly?
Avatar of emi_sastra
emi_sastra

ASKER

Hi kaufmed,

I want to do it at design time :

ControlA

ControlB

I want it to be :
ControlA
ControlB

It is hard to use drag controlB to close to controlA at design time. I have to use location property to set it.

Is there any other to set it ?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Idle_Mind,

Yes, it works.
I wonder any other way to set the drag smoothly ?

Thank you.
Hi kaufmed,

Yes, it works also.

Thank you.
Hi All,

Thank you very much for your help.
Select both controls.

In the toolbar, you have a series of buttons that help you to work with controls placement. If it does not show, activate View...Toolbars...Layout.

There is a button toward the middle to Remove Horizontal Spacing, and another one, a little more to the right to Remove Vertical Spacing.
Hi JamesBurger,

Great. You should be regarded a point.

Thank you very much for your help.
Hi JamesBurger,

Please see my new question regarding this post.
I will provide you points for your answer.

Thank you.