visual-studio-designer

Compact Framework: Failed to use InputPanel in a control

I developed a control that uses the PDA's InputPanel to interact with the user. The relevant part of the code is below: namespace MyNamespace { // ... using Microsoft.WindowsCE.Forms; // ... public class MyControl { // ... public InputPanel MyPanel { get; set; } // ... } } When...

Issue with shared WinForms resources across projects in Visual Studio

I've moved all image resources in a large multi-project solution to a new project specifically created for shared resources. Adding a new reference to other projects where the shared images are used is working as expected. The image in the selected button below continues to appear in designer but with issues. In VS Designer, I'm unable...

Visual Studio 2008 Warning About Changes to Designer-Generated Code

This question is kind of anecdotical but still interesting to me; I was wondering why Visual Studio 2008 is not loving the following use of constants: public class Service101 : ServiceBase { /// <remarks> /// Shown at Start -> Settings -> Control Panel -> Administrative Tools -> Services /// </remarks> internal const str...

Errors in VisualStudio when opening UserControl in designer

Hello! Background: I have created this UserControl. In the constructor of the user control I call a function that retrieves some values from the database. If an error occurs while retrieving the values a messagebox explaining the error is shown. So far so good. The Problem: I have created a form that (among other elements) includes my ...

Aligning Form in Visual Studio 2005

I am trying to add functionality to a form in Visual Studio 2005 that extends the form to the left. However, I am unable to figure out how to change the top and left alignment of he form in the form designer. There has to be a way to change the alignment of a form in the designer, right? ...

Pointing a ConnectionString to a special folder via Visual Studio Designer

I'm trying to set a DataAdapter connection string to point to %APPDATA% from within Visual Studio designer by editing the DataAdapter properties. I cannot seem to be able to use that moniker on the connection string property. It doesn't get translated to C:\Users\MyUserName\AppData\Roaming when I then run the application in debug mode. ...

Implement Dispose(bool) on a UserControl

How to implement the Dispose(boolean) at a UserControl... when the VS Designer already implemented it with a DebuggerNonUserCode attribute? Will my modifications on this method removed? (code from UserControl.Designer.vb) <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) ...

Designer resets property value

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...

How to select tabs on Silverlight TabControl in the VS designer

In XAML (Silverlight), how do I edit anything but the first tab in the VS Designer? All I can see is the first tab, and I don't know how to set which one is selected so that I can see the content of all tabs. Thanks! ...

Building Visual studio like application, need inputs..

Hi, I am working on a Visual studio like application i.e. have a tolbox, an editor and property grid similar to VS. User can drag and drop the controls(custom and third party) to the editor window and perform operations like resize, move, align, group etc.; Properties of that control needs to be displayed in property grid and user can ...

Second WPF project in one solution gives log4Net error

I am totally confused with the following error. I have my application which works perfectly fine and uses log4net for logging. I will now be implementing my own updater system. And I want it to be part of my solution. I have added a new WPF Application to my Solution and when I try to edit the main window or any other window in that p...

any disadvantages when opening XAML with XML Text Editor instead of Cider XAML Editor

I have made the experience that editing large XAML files is extremly faster when doing it in the standard XML text editor instead of the the split-screen cider XAML editor with the design view. This is also true when I have the "Always open documents in full XAML view" option enabled. Allthough it gets a little better when this option is...