473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Custom property editor erase all control properties

Hi,

I have a custom control in which i have a collection property named
"Columns".

this collection property add/remove column objects.
in my Column class i have a property named Alignment which use a custom
property editor.

when this property editor is not linked to this property,

My property grid displays all properties of my Column object.
When my custom UIeditor is linked via
[Editor(typeof(AlignmentDropDownEditor), typeof(UITypeEditor))] all
properties of my Column object are hidden (property grid is empty of not
only property value, but also categories and property names...

where could be the mistake ?
Could it come from property converter ?
this property is in fact a class which consists of 2 public properties :
Alignment -Vertical
Alignment -Horizontal

for information, my UIEditor is a dropdown UIEditor.

thanks a lot,

RAF.
Oct 20 '07 #1
2 4202
Ok, i found the problem... :-)

but while my custom UIEditor is based on a UserControl of 66 x 66
pixels, it is displayed by property editor like completly reduce and
only on the left half of the "form" of dropdown window.

How is it possible ?

thx.

RAF.
R.A.F. wrote:
Hi,

I have a custom control in which i have a collection property named
"Columns".

this collection property add/remove column objects.
in my Column class i have a property named Alignment which use a custom
property editor.

when this property editor is not linked to this property,

My property grid displays all properties of my Column object.
When my custom UIeditor is linked via
[Editor(typeof(AlignmentDropDownEditor), typeof(UITypeEditor))] all
properties of my Column object are hidden (property grid is empty of not
only property value, but also categories and property names...

where could be the mistake ?
Could it come from property converter ?
this property is in fact a class which consists of 2 public properties :
Alignment -Vertical
Alignment -Horizontal

for information, my UIEditor is a dropdown UIEditor.

thanks a lot,

RAF.
Oct 20 '07 #2
RAF,

The control is going to be sized by the property grid, not by you. You
have to take into account the size that you are given, and adjust your
control accordingly. If this doesn't work for you, then you would be better
off using a modal dialog.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"R.A.F." <no*****@nospam.comwrote in message
news:O1**************@TK2MSFTNGP06.phx.gbl...
Ok, i found the problem... :-)

but while my custom UIEditor is based on a UserControl of 66 x 66 pixels,
it is displayed by property editor like completly reduce and only on the
left half of the "form" of dropdown window.

How is it possible ?

thx.

RAF.
R.A.F. wrote:
>Hi,

I have a custom control in which i have a collection property named
"Columns".

this collection property add/remove column objects.
in my Column class i have a property named Alignment which use a custom
property editor.

when this property editor is not linked to this property,

My property grid displays all properties of my Column object.
When my custom UIeditor is linked via
[Editor(typeof(AlignmentDropDownEditor), typeof(UITypeEditor))] all
properties of my Column object are hidden (property grid is empty of not
only property value, but also categories and property names...

where could be the mistake ?
Could it come from property converter ?
this property is in fact a class which consists of 2 public properties :
Alignment -Vertical
Alignment -Horizontal

for information, my UIEditor is a dropdown UIEditor.

thanks a lot,

RAF.
Oct 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Job Lot | last post by:
I have added a ProgressBar control to StatusBar control and created a custom property as below, to show the properties of the ProgressBar in Property Window of StatusBar. <Browsable(True)> _...
0
by: Sundown | last post by:
I am trying to create a custom button control for the web that, when clicked, disables and changes the text of itself and a bunch of other controls (in the collection). My goal is to end up with a...
1
by: Vinod I | last post by:
Hi Team, I made a custom validator control which is having 2 public properties. But after making dll & adding that to the ToolBox, I could not able to find these properties in Property Box. ...
1
by: chambersdon | last post by:
How do I get the public properties of my custom control to show in the designer. The properties are all Strings but they do not show up in the designer property window. My custom control...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
0
by: Kay | last post by:
Hello, I have developed a web custom control, I want one of the properties of the control to appear as a dropdown list so the user can select from the list. My question is: how do I define an...
0
by: Kay | last post by:
Hello, I have developed a web custom control, I want one of the properties of the control to appear as a dropdown list so the user can select from the list. My question is: how do I define an...
4
by: cashdeskmac | last post by:
I have created a control and added a few properties. One of these is an array of DateTime objects, looking like this: public DateTime MyDates { get { return theDate;} set {theDate =...
1
by: Gene | last post by:
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.