Windows Form's Layout Properties Get Updated Automatically in Design Mode - winforms

Every time I open a Win Form in designer, its ClientSize property changes along with the child controls' Margin and Location properties. How can I prevent this from happening?
I'm using Visual Studio 2017

Related

Visual Studio show control properties and events at the same time

For Controls in WinForms while using the designer I would like to display both Properties and Events for a control at the same time.
The New Window option is greyed out in Visual Studios Window Drop down when the properties window has focus not allowing me to create a second instance.
I find I spend a lot of time switching between the two. I use the form designer extensively and events to navigate to specific code quickly. Any help would be appreciated!

How do I open a WPF menu at design-time?

I'm styling a menu in WPF and would like to see how it looks, without having to launch the application to open the menu.
Is there a way to keep the menu open (so I can see the menu items) at design-time, so I can see the changes as I go?
I currently only have Visual Studio 2010 to work with.
You can set IsSubmenuOpen="True", but if you click somewhere else, menu will close. Set it again to open.
You should be able to see changes in the design window as soon as you make changes - are you using VS2010 express? I found that in express the designer didn't refresh when I made style changes - I had to close/re-open the form to see the changes reflected. You shouldn't need to build to see design changes unless of course you are adding new user controls etc that need to be built before the designer can process them

Set default Format property value for every DateTimePicker control I add from Toolbox in VS 2010

I am building a database application against a database with several date fields. I am using DateTimePickers bound to those fields in my Windows Forms.
By default, whenever I add a DateTimePicker control to my form via Drag n Drop in Visual Studio 2010 the Format property is set to Long. I would like the DateTimePicker to always come in as Short format.
Is it possible to edit the provided template controls available in the VS 2010 Toolbox without having to create a custom control?
Perhaps you could create a UserControl that is derived from the DateTimePicker and then set the default value for Format that way. :)

Why does my Attached Property show in Blend designer but not in VS2010?

I have an attached property and I am registering it with the designer using a design-time assembly. I am using the AttachedPropertyBrowsableForTypeAttribute so that the property will be shown when a TextBox is selected.
The property shows up fine in Expression Blend 4, but does not show in Visual Studio 2010 SP1.
Does anyone know why it would not show up in Visual Studio?
You can download a test project demonstrating the problem from here:
Test Project
Thanks!
The short answer is indeed because the Cider designer is a complete piece of crap. Here's the longer answer:
From a Microsoft blog:
One thing to keep in mind is that one of the requirements of showing
attached properties in the designer is that the owning type needs to
have been loaded by the designer. This happens whenever the designer
accesses the type because it is in the XAML source or is a dependency
of an element loaded from the XAML source.
So the problem is the Cider designer only cares about types which have already been loaded. You can see an example of this by changing your containing Grid to a StackPanel: the Grid.Row and Grid.Column attached properties will then disappear from the list of TextBox properties within Visual Studio. The Blend design surface is somehow more forgiving and recognizes your type. In addition, Blend dutifully displays the Grid.IsSharedSizeScope (under Layout properties) even when using a StackPanel.
Looking at how Microsoft uses and supports attached properties, they seem to favor using them on layout containers. For example there's the AttachedPropertyBrowsableForChildrenAttribute. It's so you can do things like show Canvas.Left for children of a Canvas element. I get the impression they did not thoroughly consider how most people actually are using attached properties today (bolting functionality onto the side of an object versus having functionality flow downhill from a parent).

Quirks of Visual Studio's property pane with WPF

Working in the visual designer of a WinForm project, when one selects an element the properties pane lists all the properties for that element. Selecting a property in the properties pane then displays a description for that property (the value of the assigned DescriptionAttribute) in a property description box immediately below the list of properties. Even without the visual designer open, one can select another item (e.g. an entry in the solution explorer) to show its properties in the properties pane and the property description box is still active and visible.
When working in the visual design of a WPF project, on the other hand, the property description box does not appear (true for both VS2008 and VS2010). Is there a way to expose it? Surely it must be available, or is this a defect?
The only page I could find in VS documentation is Quick Tour of the IDE that illustrates and describes each section of the visual designer -- except for the properties pane!
2010.02.11 Update
Since, according to Will Eddins answer, there is no way to do this (and the situation is unchanged with the just released VS2010 release candidate) I have filed a defect report against VS2010.
To show the properties pane, on the menu select View >> Properties Window. Alternatively, press F4.
Seems to me a bug too. I don't know if you got any answers from Microsoft Connect but I had a work-around which worked for me always.
First, open VS2008/2010 in waiting mode(meaning; if you have set a starting project, unset it). Go to the solution explorer panel. On the top left of the panel, you may see a box named "properties", click on it. You can alternatively press Alt+Enter.
http://i43.tinypic.com/52nxtv.png
Now, as you open the properties panel, you can see the description box down in the panel(if it is not hidden in your settings file). You may have to resize it.
Now load any project you want ;)

Resources