Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

Browse by Tags

All Tags » Smart Tags (RSS)


  • How are items in different categories and different DesignerActionLists shown?

    Items in categories with the same name will be grouped together on the smart tag panel. Items from different DesignerActionLists but with the same category as other items will be grouped together but will be separated by a line. To see an example of merging...
  • How do I show a collection editor from a smart tag link?

    To show any dialog based UITypeEditor from a smart tag link, you'll need to provide an implementation of the ITypeDescriptorContext and IWindowsFormsEditorService interfaces. The EditorServiceContext class in the CustomDataGridViewSmartTag project...
  • How do I get undo to work for smart tag items?

    As with all changes made to a Component or Control on the design surface, you'll need to raise ComponentChanged and ComponentChanging events. The easiest way to do this is to use PropertyDescriptor to set values. To see an example of using PropertyDescriptor...
  • How can I modify smart tags on existing controls?

    If you cannot extend a control's designer you can push in a new DesignerActionList for a control using the DesignerActionSerivce. The CustomDataGridViewSmartTag project shows an example of this. The common use of this method is to use a global service...
  • How can I refresh the smart tag panel for my control?

    The DesignerActionUIService can be used to refresh, hide and show the smart tag panel for any control or component. The SmartTagButton class in the SmartTagSample project shows an example use of the DesignerActionService.
  • How do I add a smart tag to my control?

    There are two ways to do it. The most common is to override the DesignerActionListCollection property on the ComponentDesigner attached to your control. The SmartTagSample project shows this method. The other way is to get a hold of the DesignerActionService...
  • What are the types of DesignerActionItems?

    DesignerActionTextItem – Represents a string on the smart tag panel DesignerActionHeaderItem – Represents a bolded string on the smart tag panel DesignerActionMethodItem – Represents a command link on the smart tag panel. Each method...
  • What is a smart tag?

    A smart tag is a new UI widget attached to a control or component's selection UI that provides easy access common actions and properties. A good way to think of a smart tag item is a DesignerVerbs on steroids. The API for smart tags can be found in...