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.
LVL 1
emi_sastraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
Are you saying you would like to turn off the "snap-to" functionality--at least briefly?
0
emi_sastraAuthor Commented:
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.
0
Mike TomlinsonMiddle School Assistant TeacherCommented:
With the control selected, simply use the arrow keys to move it around.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

käµfm³d 👽Commented:
You can hold down the "Alt" key while dragging and it should negate the snap-to functionality until you release the key.
0
emi_sastraAuthor Commented:
Hi Idle_Mind,

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

Thank you.
0
emi_sastraAuthor Commented:
Hi kaufmed,

Yes, it works also.

Thank you.
0
emi_sastraAuthor Commented:
Hi All,

Thank you very much for your help.
0
Jacques Bourgeois (James Burger)PresidentCommented:
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.
0
emi_sastraAuthor Commented:
Hi JamesBurger,

Great. You should be regarded a point.

Thank you very much for your help.
0
emi_sastraAuthor Commented:
Hi JamesBurger,

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

Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.