473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IDE Question

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

Nov 21 '05 #1
8 1623
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.

"YYZ" <ma********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 21 '05 #2
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

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

Jevon

"YYZ" <ma********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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

Nov 21 '05 #4
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

Nov 21 '05 #5
"YYZ" <ma********@gmail.com> schrieb:
So, you can use Control-Left Arrow to move a control (or group of
controls) 1 pixel to the left?


This works for me.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #6
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.

"YYZ" <ma********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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

Nov 21 '05 #7
YYZ
> > So, you can use Control-Left Arrow to move a control (or group of
controls) 1 pixel to the left?


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

Nov 21 '05 #8
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

Nov 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mohammed Mazid | last post by:
Can anyone please help me on how to move to the next and previous question? Here is a snippet of my code: Private Sub cmdNext_Click() End Sub Private Sub cmdPrevious_Click() showrecord
3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
7
by: nospam | last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types, so, since it seems to me that Partial Types is still in the design or development stages at Microsoft, I am going to ask...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
53
by: Jeff | last post by:
In the function below, can size ever be 0 (zero)? char *clc_strdup(const char * CLC_RESTRICT s) { size_t size; char *p; clc_assert_not_null(clc_strdup, s); size = strlen(s) + 1;
56
by: spibou | last post by:
In the statement "a *= expression" is expression assumed to be parenthesized ? For example if I write "a *= b+c" is this the same as "a = a * (b+c)" or "a = a * b+c" ?
2
by: Allan Ebdrup | last post by:
Hi, I'm trying to render a Matrix question in my ASP.Net 2.0 page, A matrix question is a question where you have several options that can all be rated according to several possible ratings (from...
3
by: Zhang Weiwu | last post by:
Hello! I wrote this: ..required-question p:after { content: "*"; } Corresponding HTML: <div class="required-question"><p>Question Text</p><input /></div> <div...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.