VS C# 2005 Express edition align to Grid

W

WRH

Hello
In the windows form designer of VS C# 2005 Express edition
Align to Grid is greyed out. Is this intentional or just my
installation?
 
D

David Boucherie & Co

Hi...
In the windows form designer of VS C# 2005 Express edition
Align to Grid is greyed out. Is this intentional or just my
installation?

It's a setting.

By default, the Forms designer uses "SnapLines" as LayoutMode. These are
the lines that appear when you drag a control around to help you align
it with other controls or form borders.

You can use "SnapToGrid" as LayoutMode. Then a grid will be drawn on the
design service (as in previous versions: a grid of dots). When you do
that, the "Align to Grid" will work.

To change the setting:
Tools >> Options... >> Windows Forms Designer >> LayoutMode

Have fun.
David
 
W

WRH

Thanks for your quick response.

However, in VS C# 2005 Express Edition There is no
Windows Forms Designer under Tools >> Options
(just Environment, Text Editor, and Debugging)
I suspect its just not available with the free
Express edition
 
D

David Boucherie & Co

Hi...
However, in VS C# 2005 Express Edition There is no
Windows Forms Designer under Tools >> Options
(just Environment, Text Editor, and Debugging)
I suspect its just not available with the free
Express edition

Oh. Right.
I'm sorry. I should have specified you have to check the "Show all
settings" checkbox to see those. It's just that that checkbox is default
on in my environment. :)
But it's there, trust me. :) I'm using C# Express myself. :)

So...

Tools >> Options...
Check "Show all settings" in dialog box.

Then:
Windows Forms Designer >> General >> LayoutMode

Find it now?

David
 

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