designer

Property edit style as DropDown in a VS .NET custom component

我的梦境 提交于 2021-02-05 06:58:05
问题 I'd like to use the functionality of a ComboBox as edit option for a var in the properties window of a custom control / component. Not the ComboBox component itself. As example: private string[] _stringArray = { "string0", "string1" }; public string[] StringArray { get { return _stringArray; } //callback //set { _stringArray = value; } } As you know this will give me the object browser as view/edit option in the property window. Funny thing that I can edit the values even with no setter. In

How to change separator color in my IDesigner?

血红的双手。 提交于 2021-01-29 08:22:04
问题 I just created my own library with designer control,that used from System.ComponentModel.Design reference.So i got a winform designer in my application,like in vs.But i dont like that separator white color,how i can change it,because i dont found the property of separator color.I know that is possible to change the separator color like to grey color,because visual studio separator is grey... Image: First image is visual studio separator in designer, Second image is ugly white separator in my

Making a specified table using pyqt5 designer

半腔热情 提交于 2021-01-29 03:57:34
问题 I want to make a specific table like shown in the picture below using pyqt designer and I coulnd't make a good result. I want to make this table in a window and contains the same elements and same dimensions. I tried to use layouts using LineEdits and Qlabels but I couldnt make it too . Thank you. 回答1: Premise: your question didn't show lots of research efforts, and from what was said it's quite clear that you're still a bit inexperienced; this will probably make this answer very complicated,

Issue with custom TypeConverter and nested properties in the designer

拜拜、爱过 提交于 2021-01-27 21:52:17
问题 I'm trying to add a nested property to my custom control using a TypeConverter, here is my test code: public class TestNestedOptionConverter : TypeConverter { public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] filter) { return TypeDescriptor.GetProperties(typeof(TestNestedOption)); } public override bool GetPropertiesSupported(ITypeDescriptorContext context) { return true; } } [TypeConverter(typeof(TestNestedOptionConverter))]

Create a custom control which has a fixed height in designer

谁说胖子不能爱 提交于 2021-01-02 07:45:24
问题 I want to create a custom control (derived from Control class), and when I drag this custom control to a form in designer, I can only change its width. This feature is same as single-line textbox. Update: My application is Windows Form. 回答1: See http://www.windowsdevelop.com/windows-forms-general/how-to-set-that-a-control-resizes-in-width-only-9207.shtml. You override SetBoundsCore and define a Designer to remove top and bottom resize handles. using System; using System.ComponentModel; using

Create a custom control which has a fixed height in designer

ぐ巨炮叔叔 提交于 2021-01-02 07:44:36
问题 I want to create a custom control (derived from Control class), and when I drag this custom control to a form in designer, I can only change its width. This feature is same as single-line textbox. Update: My application is Windows Form. 回答1: See http://www.windowsdevelop.com/windows-forms-general/how-to-set-that-a-control-resizes-in-width-only-9207.shtml. You override SetBoundsCore and define a Designer to remove top and bottom resize handles. using System; using System.ComponentModel; using

Create a custom control which has a fixed height in designer

痞子三分冷 提交于 2021-01-02 07:40:41
问题 I want to create a custom control (derived from Control class), and when I drag this custom control to a form in designer, I can only change its width. This feature is same as single-line textbox. Update: My application is Windows Form. 回答1: See http://www.windowsdevelop.com/windows-forms-general/how-to-set-that-a-control-resizes-in-width-only-9207.shtml. You override SetBoundsCore and define a Designer to remove top and bottom resize handles. using System; using System.ComponentModel; using

Create a custom control which has a fixed height in designer

怎甘沉沦 提交于 2021-01-02 07:40:34
问题 I want to create a custom control (derived from Control class), and when I drag this custom control to a form in designer, I can only change its width. This feature is same as single-line textbox. Update: My application is Windows Form. 回答1: See http://www.windowsdevelop.com/windows-forms-general/how-to-set-that-a-control-resizes-in-width-only-9207.shtml. You override SetBoundsCore and define a Designer to remove top and bottom resize handles. using System; using System.ComponentModel; using