Re: Get the ExternaProvider Control Refrence in the UITypeEditor
- From: "Ahmed Hashish" <a_hashish@xxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 14:43:26 +0200
Thanks for replay
I think you didn't got what I mean, context.Instance returns the reference of the current selected control, I need a reference for MyControl (Extender Provider) the control that provided the property the user currently editing.
best regards,
Ahmed
"Roger Stewart" <rstewart27104@xxxxxxxxx> wrote in message news:1190901166.196448.183890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
public override object EditValue(ITypeDescriptorContext
context, IServiceProvider provider, object value)
{
if(context == null || context.Instance == null || provider
== null)
return value;
....
MyControl ctrl = context.Instance as MyControl;
if(ctrl == null) return null;
....
}
- References:
- Re: Get the ExternaProvider Control Refrence in the UITypeEditor
- From: Roger Stewart
- Re: Get the ExternaProvider Control Refrence in the UITypeEditor
- Prev by Date: Re: Get the ExternaProvider Control Refrence in the UITypeEditor
- Previous by thread: Re: Get the ExternaProvider Control Refrence in the UITypeEditor
- Next by thread: question about copy/paste/cut in designer
- Index(es):
Relevant Pages
|
Loading