IDE Question

Y

YYZ

This is really stupid. How can you, in the forms designer, move a
control 1 pixel in any direction? I know you can goto the location and
change it by 1 whichever way you want, but sometimes I have a bunch of
controls in a group, all spaced how I want, then I want to move the
whole group over a couple of pixels.

In VB6 you would use control-arrow key to move all selected controls
one pixel or so, and using Shift-arrow keys it would resize the
controls. VB.Net doesn't seem to have this -- I know I can change the
grid size to 2,2 and it works _better_, but still not 1 pixel
precision...

That's my specific question -- now is there a place in the help file
that I could use to brush up on many of the intricacies of the IDE?
(give a man a fish and feed him for a day, teach him to fish, feed him
for a lifetime...)

Thanks!

Matt
 
B

Bob Powell [MVP]

Select the form that you're placing the controls in and then turn off the
snap to grid property. You can also change the visibility of the grid and
other stuff in there.

Good luck.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Y

YYZ

Select the form that you're placing the controls in and then turn off the
snap to grid property. You can also change the visibility of the grid and
other stuff in there.

Unless I'm missing something, that doesn't help me. Although I can see
why you said it because I didn't say that I turned off the grid. I can
drag controls anywhere that I want, but that is still harder for me to
do than just "nudgeing" the controls with the arrow keys. Know what I
mean?

I really appreciate the response, but the question still remains.
Anyone?

Matt
 
J

Jevon

This still works for me, using VS2003. What settings do you have in the "My
Profile" tab of the Start window?

Jevon
 
Y

YYZ

This still works for me, using VS2003. What settings do you have in the "My
Profile" tab of the Start window?

I just looked at it, and I have Visual Basic Developer as the profile
-- keyboard scheme is VB6, window layout is Visual Studio Default, and
Help Filter is Visual Basic.

So, you can use Control-Left Arrow to move a control (or group of
controls) 1 pixel to the left? There is hope then...I just have to
figure out what I've hosed up to make it act different than what I
expect. Any other ideas?

Matt
 
B

Bob Powell [MVP]

Ahh, I see. Place the control explicitly using the property grid by typing
in it's coordinates.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Y

YYZ

So, you can use Control-Left Arrow to move a control (or group of
This works for me.

If I select 1 or more controls, then type control-left arrow, it jumps
to some kind of boundary, like every 8 pixels or so -- like it has snap
to grid on. I have checked in the options of the IDE AND for that
particular usercontrol designer, and both are set to have snap to grid
as false. I have checked and rechecked and re-rechecked. I don't get
it.

All I know is that it is really slowing me down, and making me
overthink every little move that I want to do in the designer.

Matt
 
Y

YYZ

Ahh, I see. Place the control explicitly using the property grid by typing
in it's coordinates.

Right, I can do that. But if I copy a group of controls and paste them
in a different place on the same form or on a different one, sometimes
I want to move them over 3 pixels to the left and 4 pixels up. I have
to goto EACH CONTROL and subtract 3 from the location's first number,
and subtract 4 from the locations 2nd number. What a pain in the ass.

Matt
 

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