Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DRAG CONTROL SMOOTHLY AT DESIGN TIME

Posted on 2012-03-12
10
Medium Priority
?
191 Views
Last Modified: 2012-03-13
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.
0
Comment
Question by:emi_sastra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 37712951
Are you saying you would like to turn off the "snap-to" functionality--at least briefly?
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37713062
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
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 1000 total points
ID: 37713065
With the control selected, simply use the arrow keys to move it around.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 1000 total points
ID: 37713077
You can hold down the "Alt" key while dragging and it should negate the snap-to functionality until you release the key.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37713080
Hi Idle_Mind,

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

Thank you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37713092
Hi kaufmed,

Yes, it works also.

Thank you.
0
 
LVL 1

Author Closing Comment

by:emi_sastra
ID: 37713096
Hi All,

Thank you very much for your help.
0
 
LVL 40
ID: 37713237
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
 
LVL 1

Author Comment

by:emi_sastra
ID: 37713520
Hi JamesBurger,

Great. You should be regarded a point.

Thank you very much for your help.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 37713522
Hi JamesBurger,

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

Thank you.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question