designsurface

DesignSurface and Zoom

I am trying to implement Zoom feature on a DesignSurface, which uses .Net 2 based Designer time architecture. I have two approaches to handle ZoomChanged event: Unload the Design surface and reload with Zoomed content. Identify the affected properties and set them to Zoomed values of properties. Problem: In approach 1, Unload and...

DesignSurface exception when using SmartTag for some third-party component. how to catch exception ?

I develop custom DesignSurface base on Powerful DesignSurface (Extended) and set UseSmartTags. it's work properly for standard .net control. but when i using some third-party component, (in case using 2 instance of one control),and click on first control and change some property using smartTag, and then click on second component smart ta...

Set Value of Property When Delete Key is Pressed in PropertyGrid.

I am currently working on a project that hosts WinForms designer. I am using PropertyGrid to display manipulate properties of the controls that are dropped on the DesignSurface. I have created UITypeEditor's to modify values of my custom controls properties. How can I reset the value of the property to null when Delete key is pressed i...

IComponentChangeService events don't fire when Property Value is modified

I am working on a WinForms designer hosting project. All controls that will be dropped on the DesignSurface are custom controls that inherit from existing controls. My DropDownListControl: [Serializable] [ToolboxBitmap(typeof(System.Web.UI.WebControls.DropDownList))] [ListControlSerializerAttribute("asp", "DropDownList")] public clas...

Inherited Control Visible/Enabled Property Value Always True: PropertyGrid

I have created a custom WinForms hosting environment. Which has a toolbox and a PropertyGrid. The controls displayed in the Toolbox are inherited from existing WinForm controls. DropDownList Source: public interface IPropertyFilter : ICustomTypeDescriptor { PropertyDescriptorCollection FilterProperties(PropertyDescriptorCollection...