Category: Design Time Support

  • Custom Controls Design Time Support Part 7: UITypeEditor Introduction

    In the previous posts in this series I introduced how to use some basic and advanced Attributes and how to add an image for your control to appear in the toolbox and then I gave an introduction on TypeConverters and examples here and here on how to use the TypeConverters. Now I will give an introduction…

  • Custom Controls Design Time Support Part 6: Custom TypeConverter 2

    The last post in the series I have showed you how to implement a custom TypeConverter and override some of the virtual methods from the base class. In this post I'll show how to some more advanced examples on how to get the most of TypeConverters. First look at the strucure of the example. [more] …

  • Custom Controls Design Time Support Part 5: Custom TypeConverters

    In the previous post I gave an introduction on common TypeConverters and how to use them, in this post I will show you how to implement custom TypeConverters for your own custom data types. First, lets explore the TypeConverter base type virtual methods … Method Description CanConvertFrom Returns a Boolean value indicating whether the converter…

  • Custom Controls Design Time Support Part 4: TypeConverters Introduction

     I mentioned in my Introduction post of this series the TypeConverters Overview: For those who don't know what is a TypeConverter you can expect that it is something responsible to convert between types, there are times when you need to convert from one data type to another. Type converters are classes that describe how a…

  • Custom Controls Design Time Support Part 3: Adding Image in the Toolbox

    Attributes Applied To Description ToolboxBitmap Controls           Allows you to specify an icon to represent a control in a container, such as the Microsoft Visual Studio Form Designer. » ToolboxBitmapAttribute if you want to redistribute your custom control you should use this attribute to add an icon to it. [code:c#] [ToolboxBitmap(typeof(Button))] public class ButtonEx : Button…

  • Custom Controls Design Time Support Part 2: More Design Time Attributes

    In my previous post I pointed out the most common used Attributes for Design Time Support. In this part I will point out some more Attributes that take advantage of the Design Time Environment. Attributes Applied To Description DisplayName Properties & Events Specifies the display name for a property or an event. ParenthesizeProperty Properties  Indicates whether the…

  • Custom Controls Design Time Support Part 1: Design Time Attributes

    As I mentioned in my previous post, I am willing to write a multi part tutorial on how to add Design Time Support to your custom controls. In this part, I will talk about the common attributes for Properties and Events Attribute Applied To Description Browsable Properties and events Specifies whether a property or an event should…

  • Custom Controls Design Time Support Part 0: Introduction

    In my amr-elsehemy.blogspot.com I started a design time support tutorial for custom controls but I didn't manage to finish them so I will start my blog here on amrelsehemy.net by editing my previous posts and adding new tutorials. So if you came from my blogspot you may still find some new useful information, so lets start. You…