designer

VS 2008 Windows Forms make "View Code" the default for UserControls

We have some UserControls that can not be designed. So the Windows Forms Designer in VS 2008 is pretty much useless and it takes some time until the designer throws the exception when accidentally doubleclicking the UserControl in the solution explorer. Is there a way I can make the designer open the C# code view when doubleclicking on a...

Dataset Designer and Postgresql?

Hi, I have used Dataset Designer in built in Visual Studio 2008 for my asp.net application to interact with my Sql Server database. Now i want to port my application to postgresql database. Can i use Dataset Designer similarly with Postgres? Or otherwise i am looking for an alternative tool that works similarly like Dataset Design...

C# ParentControlDesigner: Resize handles don't move on Resize by WndProc

I'm creating a collapsible panel control in C# and would like the expand/collapse button to function during design-time as well as run-time. I've gotten this to work fairly well, except that when the control resizes from clicking the button, the resize handles in the designer don't move. When you click on something else and then click ...

Alias and namespace conflict in Visual Studio Designer

I have a namespace conflict between two referenced assemblies: i.e., I'm referencing Foo.A.Foo and Foo.Bar, so when I say I want Foo.Bar.Control, VS is trying to find Foo.A.Foo.Bar.Control I can twiddle the Designer.cs code by adding new global:Foo.Bar.Control(), but as soon as I change anything, VS switches back. I know there's somet...

Multiple keyboard shortcuts for action in Qt Designer

I'm having a weird problem with Qt designer. I have the following shortcut for a refresh action:F5,Ctrl+R The idea is that on Macintosh, Ctrl+R maps to Command+R which is more intuitive and on Windows, F5 does the job. The problem is that only the first shortcut seems to be active. Is there a way for me to change the action's shortcut ...

Using Data Source configuration wizard vs manually configuring data source

Hi all, Back in the days of VB 4 / VB 5, using data bound controls and data connection wizards would add alot of overhead to the application. I wanted to know if using the "Configure Data Source" wizard in ASP.Net 3.5 adds alot of unneeded overhead to the webpage? Thanks ...

Minimum permission required to publish a workflow using Sharepoint designer

I'm trying to give one our BA's the ability to make changes to a workflow that was created with Sharepoint designer. After some trial and error (i did not try all combinations) adding them to the Site Administrators group seemed to be the only thing that worked. In this case it's only going to be a temporary elevation of permissions. ...

c# Hide function from Designer

I have a function that causes an exception in the designer. Can I avoid the call of the function if the designer loads it. Is there an attribute or something that is better than try catch? Some more details: I mean the visual studio designer for win forms. My form is using a signleton wich calls LoadProject() on initialize. Now I want t...

How to set default XAML view in Visual Studio 2008

In Visual Studio 2008, when you add a new XAML window to a WPF Application Project, the default view you get is "split view" where the visual designer and the XAML code are shown one above the other in the same document. I prefer an alternative view which you can get by double-clicking on either the Design or XAML tabs. The visual desig...

WF Rules and CodeTypeReferenceExpression

I moved some variables into classes in my workflow. Unfortunately, now the rules fail, I've been trying to set the Type, but keep getting this error. Activity 'ifRequestComplete' validation failed: Property "Condition" has invalid value. Condition expression is invalid. The type name specified ("Request, ApprovalWorkflow")...

Designer to see internals?

I have my signed assemblies here, in one of them I have a picture in the resources. The other one is granted to use it as it's own, so my other assembly can reference the picture, and everything works fine. Only if it wouldn't be for the Form Designer in VS2008. It does not see the Image. ( It might be ok, since it's linked at compile...

As a designer who has become proficient in HTML and CSS, is it safe to start using jquery plugins instead of learning javascript? I'm not a programmer..

I have mastered for the most part taking my designs and coding them as read only web pages. I'm looking to go the next level. I have used some jquery plugin's and figured them out quite easily with a bit of trial and error. I have also started reading a book on Java script but it seems like nothing I'll ever really need as I don't pl...

How do I "hide" controls that my control uses from the toolbox?

I have developed a control in C#. Among other things this control can popup other controls at runtime. When you include the assembly in Visual Studio, the control that I created shows up, but the other controls (the ones my control uses) show up as well. I would rather not have them show up in the toolbox in Visual Studio. Is there a...

How do I use the service locator implementation in System.ComponentModel for dependency injection in a WinForms application?

I'm trying to allow my business logic components to query for services when they are added to one of my form/control classes. For example, I might have a ClientManager class in my library, which encapsulates some business logic. It requires an ILoginManager instance to query for some data that it needs to operate. The concrete ILoginMan...

Is it possible to create a graphical designer for a specific domain?

I'm currently on the project where we are developing a designer that our developers and customers should use to create / modify our web pages. I like the project a lot because of the challenges, plus I have an opportunity to learn other technologies. However, I don't believe in its success. I truly believe that it's going to be to i...

Adding a Component from the Data Sources View in Visual Studio on a Form with a Custom Designer

Hello guys, I have developed a custom Designer (by inheriting from DocumentDesigner and reflecting the code found in the FormDocumentDesigner class so that I do not brake the default Form design time features) class for my forms. I associate the designer with my forms by using the Designer attribute the following way: [Designer(typeof(...

The type name {myUserControl} does not exist in the type {myNamespace.myNamespace}

I have a problem (obviously the question :) I have a project-- MyProject... hence the rest of the project uses a default of any classes as namespace "MyProject"... no problem. In my project, I created a custom user control that has many other controls on it (label, textboxes, etc). So, that class is ALSO within the default namespace ...

Why does specifying a numeric value for a control's property in the designer result in new decimal(new int[] {... in the code?

In my C#.Net WinForm app in VS2005, I have a NumericUpDown control. In the designer, I set the Minimum property of the NumericUpDown to -65535. In the form's .designer.cs code, I expected to see this: this.myNumericUpDown.Minimum = -65535; but instead I get: this.myNumericUpDown.Minimum = new decimal(new int[] { 65535, 0...

Derived ASP.NET UserControl not visible in VS2008 designer

Hello! I have an abstract base class derived from UserControl (called BaseControl) and several other classes inheriting from this BaseControl class. BaseControl class gets typed to f.ex. TextBox or DropDownList and then in its constructor i create a new instance of this type. Everything is working just fine otherwise, but for some reas...

Windows Mobile Hi-Res Designer in Visual Studio

Is it possible to do Windows Mobile development in Visual Studio (2008), where the Windows Mobile Forms designer appears in "hi-res" (VGA/>96 DPI), rather than the default lo-res view? I'm using Resco controls, which have some built-in support for hi-res, but it's a little bit slow to develop any significant forms, because you don't kno...