I added a Button on my form, I want to arrange it's location precisely to the pixel on the form. Does anyone know how I can do that? Thanks in advance.
nicewave
0
Newbie Poster
Recommended Answers
Jump to PostTry using the .Top and .Left properties of the control. You can make it relative to the form by using the buttons .Width and .Height members as well as the form's width and height. Although anchoring and docking will keep these ratios even for you.
Jump to PostYou should be able to move them pixel by pixel by default. However, Visual Studio will try to auto-align it with other controls (middles, tops and bottoms). You can disable this by holding the ALT key while dragging a control.
All 8 Replies
skatamatic
371
Practically a Posting Shark
ddanbe
2,724
Professional Procrastinator
Featured Poster
nicewave
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
nicewave
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
skatamatic
371
Practically a Posting Shark
ddanbe
commented:
Thanks for the tip!
+15
nicewave
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.