Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 8 Jul 2008 01:15:00 -0700,    group: microsoft.public.dotnet.framework.windowsforms.designtime        back       


UITypeEditor and IExtenderProvider   
I have an extender (IExtenderProvider) which extends certain types of 
controls with additional properties. For one of these properties, I have 
written a UITypeEditor. So far, all works just fine.

The extender also has a couple of properties itself, which I am trying to 
use as a sort of default for the UITypeEditor. What I want to do is to be 
able to set a property on the extender itself (not the extended controls), 
and when I open up the UITypeEditor for one of the additional properties on 
an extended control, I want to set a value in the UITypeEditor to the value 
of the property on the extender.

It seems to me that the best place to do this would be 
UITypeEditor.EditValue, just before calling 
IWindowsFormsEditorService.DropDownControl or .ShowDialog.

The only problem is that I can't (or I haven't discovered how to) get hold 
of the extender provider itself in EditValue. Context gives me the extended 
control, but that is of no use to me in this case.

Is there any way to achieve what I'm trying? Any help appreciated!

Thanks 
Tom
date: Tue, 8 Jul 2008 01:15:00 -0700   author:   Tom Juergens am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us