Hi ?zden,
This may just amount to a hack and hopefully someone else will reply
with a better solution, but if the child classes (the ones used for the
properties) will be unique to the object to which they belong (meaning that
you're not using the same child/property object for several parent objects),
then you could probably solve this by exposing a parent pointer to the
parent object from within each of the child objects as properties
("Parent"), as components do. Now, I don't know much about using
UITypeEditors. That's one of my next goals is to learn how to do one, so
please forgive me if I'm totally wrong here. But if you have access to the
particular child object (the property) from the UITypeEditor, then you
should have access to the newly exposed Parent property, which would give
you access to the parent object, which exposes the other three child objects
as properties of itself. That should work, no? Like I said, that might be
a bit of a hack. Hopefully if it is, someone who knows what they're doing
will correct me.
Hope that helps,
Chris
> Hello,
>
[quoted text clipped - 16 lines]
>
> ?zden
?zden Irmak - 07 Apr 2004 17:41 GMT
Hi Chris,
This seems to be ok at first sight but as the control itself derives from
System.Windows.Forms.Control, I get error indicating that it is not marked
as serializable...
Thanks for taking time anyway...:)
?zden
> Hi ?zden,
>
[quoted text clipped - 38 lines]
> >
> > ?zden
?zden Irmak - 07 Apr 2004 17:53 GMT
Chris,
Ignore my last post...
[NonSerialized()]public GenericLabel Parent;
Could solve with this...
Thank you very very much...
?zden
> Hi Chris,
>
[quoted text clipped - 56 lines]
> > >
> > > ?zden
Hallo,
maybe i am missing the point, but why is it not possible simply to get
the current values of all needed properties from the "value" parameter
of EditValue?
public override object EditValue( ..., object value){
YourCtl ctl = (YourCtl)value;
int neededValue1 = ctl.AnObjectProp2.ItsProp;
...
}
HTH,
Dima.
"Özden Irmak" <ozdenirmak@isnet.net.tr> wrote in message news:<uNfhvIJHEHA.2876@TK2MSFTNGP09.phx.gbl>...
> Hello,
>
[quoted text clipped - 16 lines]
>
> Özden