Re: Get the ExternaProvider Control Refrence in the UITypeEditor



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;

....
}


Relevant Pages

  • Re: Get the ExternaProvider Control Refrence in the UITypeEditor
    ... 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. ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: Get the ExternaProvider Control Refrence in the UITypeEditor
    ... 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 the control that provided the property the user currently editing. ... public override object EditValue(ITypeDescriptorContext ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: Circular References...
    ... > MyControl needs to call MainLib, so I have a reference to MainLib ... Interface ILibrary ...
    (microsoft.public.dotnet.languages.vb)
  • Circular References...
    ... Now MyControl needs to call MainLib, so I have a reference to MainLib ... drop a copy if MyControl onto the MyNewForm). ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to reference method in usercontrol
    ... > I want to call a method called teston my user control type ... > MyControl. ... The question is how to reference this? ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)

Loading