windows-forms-designer

How to save a struct property of a user control in Windows Forms Designer?

给你一囗甜甜゛ 提交于 2021-01-28 04:41:06
问题 I've checked the answers of this question: Modifying structure property in a PropertyGrid And also SizeConverter from .net. But not helpful, my property is still not saved. I have a struct, a user control, and a custom type converter. public partial class UserControl1 : UserControl { public Bar bar { get; set; } = new Bar(); } [TypeConverter(typeof(BarConverter))] public struct Bar { public string Text { get; set; } } public class BarConverter : ExpandableObjectConverter { public override

Following controls were added but are not enabled

こ雲淡風輕ζ 提交于 2021-01-27 05:38:11
问题 I'm trying to add the Windows Media Player component to my solution, but this message is displayed instead. The following controls were added but are not enable in the active designer. Make sure the controls to add are compatible with the current designer and .NET Framework I'm using Windows 8.1, Visual Studio 2013 and .NET framework target is 4.5 I copied my DLL to the bin folder too. 回答1: I could suggest you to check if the version of the ddl that you have imported is for 4.5 version of

What is the relevance of *.resx file in Windows Forms/controls? [duplicate]

最后都变了- 提交于 2021-01-27 04:11:07
问题 This question already has answers here : Closed 10 years ago . Possible Duplicate: purpose of form1.designer.cs and form1.resx I Understand about *.designer file grouped with a windows form/control file. But not sure what is the relevance and use of *.resx file attached. Can i not create a form/control with this file attached to it? 回答1: The Windows Forms designer persists designed forms by generating code. Lots of control properties are however difficult to express in code. A form's Icon

What is the relevance of *.resx file in Windows Forms/controls? [duplicate]

[亡魂溺海] 提交于 2021-01-27 04:10:19
问题 This question already has answers here : Closed 10 years ago . Possible Duplicate: purpose of form1.designer.cs and form1.resx I Understand about *.designer file grouped with a windows form/control file. But not sure what is the relevance and use of *.resx file attached. Can i not create a form/control with this file attached to it? 回答1: The Windows Forms designer persists designed forms by generating code. Lots of control properties are however difficult to express in code. A form's Icon

How can I keep a Status Bar from covering my RichTextBox…? C#

邮差的信 提交于 2021-01-20 09:35:10
问题 there! I am creating a Notepad-Like program(Much more advanced), and there is something bothering me... Notepad++ & Notepad have the Status Bar located just under the richtextbox/textbox border. LITERALLY RIGHT UNDER IT. I put a Status Bar onto my form, and added the controls(Lines,Line,Column,FileSize...) but I still cannot get it to stay under the richtextbox, so that it will not block the user's view of text. For EXAMPLE... I have a richtextbox, and a user loads a huge file into it. They

BeginResize/EndResize Event for Control on WinForms Design Surface

一曲冷凌霜 提交于 2020-05-27 09:26:30
问题 TLDR: I would like to know how I can create a hook into a begin-resize and an end-resize event for a design-time control instance on the designer surface. Detail: Specifically, I am working with a design surface produced by a BasicLoader in the System.Design and System.Component.Design .NET namespaces. Specifically, I'm working a design-time instance of the TableLayoutPanel. That control exposes a SizeChanged event and a Resize event--alas, both fire during the resize operation--that is,