designer

Unable to delete controls inside toolstripcontainer

Hi, I met strange issue during designing winform. I placed a few controls inside toolstripcontainer and now I cannot delete them. It's also impossible to delete whole Toolstripcontainer. I'm using Visual Studio 2008 SP1 plus some extra patches. Is it a bug in Visual Studio? Is there any workaround? Or I'm lacking of knowledge of VS? Best...

Question How to invalidate/refresh the VS IDE designer for C# ?

I have CustomForm inherited from Form which implements a boolean property named Prop. The forms I'll be using will inherit from CustomForm. This property will do some painting and changes (if it's enabled) to the form. However, this is not working as it should, the VS IDE designed is not being refresh to show the changes. But if I press ...

How can I set the order in which the designer sets values?

I've made a custom control with values for start, current, and end times. The current time has to be between the start and end times, or else an exception is thrown. In the designer, I want to set new start, current and end times; and the new current time is valid for the new start and end, but not the default start and end. However, ...

What is the Best Job Title for a "Webmaster"?

I was hired within higher education as their "Webmaster". I know it is somewhat dated and recently read an article that made some good points for a title change. My boss recently asked me to write a proposal for the title change and come up with an actual title. I work at a community college and we are not heavily staffed, so anything ...

How do I resolve the WPF Designer error 'The type {0} does not support direct content'.'?

Hi, The following XAML (below) defines a custom collection in resources and attempts to populate it with a custom object; <UserControl x:Class="ImageListView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300" Height="300" xmlns:local="clr-nam...

C# UserControl Inheritance

Working with VS.NET 2008, output type Class Library, Target Framework .NET 2.0 I've come up with a simplified scenario to ask this question. I have a Button user control, its a simple panel with a single big button on it. I want to create a RedButton control that extends Button, and similarly, a GreenButton.e.g. Class RedButton : Butt...

WPF Designer has bug with parsing generic control with overrided property

I've created a generic lookless control with virtual property: public abstract class TestControlBase<TValue> : Control { public static readonly DependencyProperty ValueProperty; static TestControlBase() { ValueProperty = DependencyProperty.Register("Value", typeof(TValue), ...

Collapsible member events in Visual Studio designer

How can I get my control members to show their events on the Visual Studio event grid? Visual Studio does this for certain things like the "(DataBindings)" member by putting them in a collapsible section, like so: I'd like to do this for some of my own components, since their events are usually handled on the form, and having to creat...

Windows Form Design-Time Error

I am using Visual Studio 2008 and I get the following error message when trying to open one of my Forms: Could not find endpoint element with name 'WSHttpBinding_ICommon' and contract 'CommonWCF.ICommon' in the ServiceModel client configuration section. This might be because no configuration file was found for your applic...

Visual Studio designer moving controls and adding grid columns when form is opened

The first time I try to open a particular form many of the controls (those with anchors on the right side and/or the bottom) are shifted and my grids automatically regain all the columns from their datasource which (the columns) I had previously removed. I have read elsewhere it is recommended to copy the 'good' designer code into the c...

How to create a derived ComboBox with pre-bound datasource that is designer friendly?

I'd like to create a derived control from System.Windows.Forms.ComboBox that is bound to a list of objects that I retrieve from the database. Idea is other developers can just drop this control on their form without having to worry about the datasource, binding, unless they want to. I have tried to extend combobox and then set the Data...

What are my options for filtering custom .net controls from the WinForms toolbox of Visual Studio 2008?

Visual Studio 2008 does a much better job of detecting and adding controls from projects to the toolbox for use in the forms designer. If you have an assembly with a UserControl- or DataSet-derived type, then it will automatically detect and add that control to the toolbox for designing forms. This is slightly better than the old system ...

How can I prevent the VS WPF designer putting margins on every object from the toolbox

When I drag a control from the toolbox on to the Visual Studio 2008 WPF design surface, it sets a margin based on where I dropped it and a default size. Is there any way to prevent VS setting those? When I drop a control on a stackpanel I want it to flow in to the existing controls in the panel. Thanks! ...

Visual Studio WinForms designer does not instantiate object

I created a class derived from System.Windows.Forms.ContextMenuStrip class, not as a user control, just a plain .cs class with a constructor and one event handler. When I drag this class from the Toolbox onto the designer, it creates a private member for it and a couple of properties, but does not instantiate an object. Thus, at runtim...

Dataset Designer Issue - Visual Studio 2008

We're using a dataset to throw a small amount of data around amongst various nodes within our application. The dataset is in an assembly by itself as it is reference from many other components. The Visual Studio dataset tool has developed a strange habit of creating a new designer everytime a build is done. So, the project looks like...

Visual Studio - Why do .ASPX files take so much longer to load than .ASPX.CS files?

Hi all, This may be a stupid question, but it's something that bugs me on a regular basis, so no harm in asking here I guess. What exactly is Visual Studio doing when I open up an .ASPX file and it takes a good 4-5 seconds longer than if I was just opening the code behind file (.ASPX.CS). I've noticed this happening with VS 2003, 2005...

VS addin: View markup. Does exists something like that?

While working with ASP.NET using Visual Studio (2008) I have discomfort issue: source code editor context menu has only item 'View Designer' but nothing about to view markup quickly! To see it you need to open Designer and click Markup label in the bottom of a window. Or use Shift+F7 hot key (by default). So I want to add an item menu ...

web-based query designer with msft access-style GUI

I remember seeing online a (sql?) query designer tool that looked like the "point and click GUI" that you get in MSFT access (and other similar apps). It allowed the user to do simple joins and where clauses and select clauses simply by toggling checkboxes, dragging table icons into view and connecting joins by drawing lines. This lin...

Sharepoint Designer

Right, I've created a custom theme (TESTTHEME) and have managed to change various css styles etc... to fit in with my design. Now I've come to personalise the navigation I need to drop some new images to be used in the theme.css file as background images and so on. However, I can't seem to add images into the directory. I've added them i...

Winforms Designer: Modify (and keep) properties in sub objects

For a WinForms control, I'd like to move certain settings into a sub object. One of them is a custom class containing all UI Strings, the other a OpenFileDialog: class MyControl: Control { // ... private OpenFileDialog m_dlgOpen = new OpenFileDialog(); public OpenFileDialog DialogOpen { get { return m_dlgOpen; } } } Thi...