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...
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 ...
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, ...
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 ...
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...
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...
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),
...
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...
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...
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...
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...
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 ...
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!
...
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...
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...
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...
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 ...
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...
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...
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...