windows-forms-designer

Is there a way to auto generate controls on a form from a binding source?

拈花ヽ惹草 提交于 2019-11-26 14:57:49
问题 When I add a binding source to my windows form, is there a quick way to populate the form with all the properties of the bound object? A drag and drop Field List, similar to that found in many report writers would be good. 回答1: In Visual Studio, the Data Sources Window displays the data sources in your project. You can use Data Source Configuration Wizard to create and edit data sources from databases, services, or objects. After creating data sources in your project, you can use the Data

How can I get Visual Studio 2008 Windows Forms designer to render a Form that implements an abstract base class?

自作多情 提交于 2019-11-26 06:05:30
问题 I engaged a problem with inherited Controls in Windows Forms and need some advice on it. I do use a base class for items in a List (selfmade GUI list made of a panel) and some inherited controls that are for each type of data that could be added to the list. There was no problem with it, but I now found out, that it would be right, to make the base-control an abstract class, since it has methods, that need to be implemented in all inherited controls, called from the code inside the base

Combining multiple Attributes to a single Attribute

人走茶凉 提交于 2019-11-26 05:38:15
问题 On a control I am using multiple attribute properties: [Browsable(false)] [Bindable(false)] [EditorBrowsable(EditorBrowsableState.Never)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [Obsolete(\"\", true)] public new Boolean AllowDrop; I am using those properties on a lot of the other control properties as well. I am wondering if there is a way to reduce the amount of code to write each time. It would be nice if I could combine multiple attributes like this:

Can't view designer when coding a form in C#

不羁岁月 提交于 2019-11-26 02:10:52
I'm following this tutorial on winforms, and so far the tutorial is coding the form without using the toolbox. I believe it'll introduce the toolbox in more depth shortly. Following the tutorial, I've made a partial class in the following two pieces of code: First file : using System; using System.Windows.Forms; public class Numeric : System.Windows.Forms.TextBox { public Numeric() { } } public partial class Exercise { private Numeric txtbox; System.ComponentModel.Container components; } Second file : using System; using System.Windows.Forms; public partial class Exercise : Form { private void

Can't view designer when coding a form in C#

浪尽此生 提交于 2019-11-26 01:50:03
问题 I\'m following this tutorial on winforms, and so far the tutorial is coding the form without using the toolbox. I believe it\'ll introduce the toolbox in more depth shortly. Following the tutorial, I\'ve made a partial class in the following two pieces of code: First file : using System; using System.Windows.Forms; public class Numeric : System.Windows.Forms.TextBox { public Numeric() { } } public partial class Exercise { private Numeric txtbox; System.ComponentModel.Container components; }

Transitioning from Windows Forms to WPF

对着背影说爱祢 提交于 2019-11-25 21:56:28
问题 For a long time now, I have been stuck with Windows Forms development (started with VB6, and has continued through to C# .NET 4.5), and I have pretty much hit the limit of what Windows Forms can do, both using pure .NET, and special effects with Native Code. I have tried to learn WPF and XAML, but I get stuck right at WPF\'s new designer. It really seems very difficult to use in comparison to the Windows Forms designer. I want to know if there are any alternatives to .NET\'s WPF designer,