I know how to configure VS 2008 to open windows forms controls in code instead of the designer. But I think I have seen a way I could do this with an attribute I could decorate the desired controls with. Does anyone know its name? This is especailly usefull if you want some controls to be opened in the designer and some in the c# code vi...
This is something that's been driving me up the wall: how can i get the windows forms designer to provide pixel snapping for the horizontal and vertical centers of the form I'm working on?
...
I enjoy running Visual Studio in 1680 x 1050 resolution. However, our customers typically use 1024 x 768. Is there some way I can keep my editor in the native resolution but display the form designer in a different one? Thanks!
Austin
...
Hi,
I have a Windows Forms user control, which (for various reasons irrelevant to this issue) are exposed in the designer, much like the panels in a split panel. Most everything works nicely, except for dragging the control. The child controls are created by the user control, and it does not accept new children. The intent is only to al...
I am working on a winforms project containing some forms and controls. Each one is translated in 4 languages. There is one form called "PropertiesForm" which is a nightmare to maintain : it has a tab container with 6 tab pages, and more than one hundred controls in it, with dirty code trying (and often failing) to keep the whole thing co...
I add two buttons in personalized Control ToolBar, this ToolBar is used in several VB.NET windows forms and some toolbar buttons does not show correctly, the right side buttons are hidden and are very important to show all of them.
How I get to modify this windows forms width using a script or VS 2008 IDE macro ?
...
Hi.
I'm developing custom control for Compact framework. I want to add some design-time features for it.
My control has byte[] property. This property stores data from file (about 20 KB).
Visual studio designer produce for my control code like this:
this.transparentPanel1.Image = new byte[] {
((byte)(137)),
((byte)(80)),
((b...
I've got a VB.Net form application that dynamically loads user controls based on which navigation link the user clicks on. I'd like to make it easier to use at Design time by putting a link of some sort to open the User Control at design time. The link would go onto the form in the space where the User Control will be going. This just...
I was just creating a Windows form that uses a ToolTip control and it occurred to me that this control (or component to be right on the terminology) provides design time properties for every other control on the form.
How can I achieve this for a control of my design?
...
Given the following inheritance tree:
I have a
public class BaseForm : Form
This is the base form for all WinForms in the project (or most) and contains some basic stuff.
Later in time, when Generics came, I created a
public abstract partial class GenericObjectListBase<T> : BaseForm
And finally, I specialized that one with a:
...
I have a Subclass of a BindingSource that just extends it a bit for our special needs, and I would like to support it for the VS2008 Designer.
I have three properties, that I would like to get designer support for, two of them should be set to other Controls on the form, one should be set to a Type.
Displaying them in den Designer as w...
I develop custom DesignSurface base on Powerful DesignSurface (Extended)
and set UseSmartTags. it's work properly for standard .net control. but when i using some third-party component, (in case using 2 instance of one control),and click on first control and change some property using smartTag, and then click on second component smart ta...
I have a problem setting a default value on a property, that is "updated" by Visual Studio Designer every time the form is modified in it.
Situation:
class MyHour {
MyHour() {}
MyHour(string h) {}
}
class MyPanel {
_FirstHour = new FirstHour("13:00");
[DefaultValue("13:00")]
Hour FirstHour {get { return _Firs...
Not sure if this is a bug or if i'm just missing something but I cannot for the life of me figure out how to get my cursor back in the winforms designer in visual studio 2010.
I opened up an existing project and added a group box, now my cursor is stuck drawing group boxes. I just want the simple pointer cursor back but nothing I do se...
When you drag a new Button onto a Windows Form it is automatically assigned the text "button1". If you have a control that inherits button called "CustomButton" then that one is automatically assigned the text "customButton1" when added to a form.
Is it possible to make this text default to something else? For example, can I have the te...
I have a WinForms user control Host with a custom UI Editor.
Through that editor, a child control (Child) can be added to Host.
(The UI Editor creates Child and sets Child.Parent = Host)
Child is handled through a Holder<Child> helper class, which is set as Tag property of e.g. a ListViewItem.
The respective code - some of it, at lea...
Hello all,
My question is related to the design-time support of WPF. From MSDN I read,
The WPF Designer provides a framework
and a public API which you can use to
implement custom adorners, tools,
property editors, and designers.
But the vast majority of the examples I have found are trivial, and do not illustrate much con...
I just created a user control.
This control also makes use of my static Entity Framework class to load two comboboxes.
All is well and runs without a problem. Design and runtime are working.
Then when I stop the application all the forms that contain my UserControl don't work any more in design time. I just see two errors:
Error1:
The ...
I've looked into the DesignOnly attribute, but that doesn't seem to accomplish what I want*.
Basically, I'm looking for some way to indicate that some property of a user control (let's say Text) can be modified during design time -- i.e., from the Windows Forms designer in VS (or presumably from any GUI designer that can be used to modi...
Hi,
I'm writing an application that lets the end use design a Form just the way Visual Studio lets you design a windows forms. I looked into visual studio forms designer articles in msdn and also studied open-source SharpDevelop editor. Both the examples host visual studio's windows forms designer to provide form-design service in their...