Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Custom property editor erase all control properties

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
R.A.F. - 20 Oct 2007 20:17 GMT
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.
R.A.F. - 20 Oct 2007 20:24 GMT
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.

> Hi,
>
[quoted text clipped - 24 lines]
>
> RAF.
Nicholas Paldino [.NET/C# MVP] - 20 Oct 2007 21:03 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Ok, i found the problem... :-)
>
[quoted text clipped - 36 lines]
>>
>> RAF.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.