User Profile

Collapse

Profile Sidebar

Collapse
Franna Tech
Franna Tech
Last Activity: Mar 6 '11, 05:20 PM
Joined: Jan 24 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi Bryan

    Thanks, yes, I have created an interface and implemented this in my subclasses with an Extension class as follows:

    Code:
    public interface IDesignBaseControl
    {
            
            void Initialize();
    
            string Name { get; set; }
    }
    
    public static class DesignBaseControlExtension
    {
            public static void InitializeBase(this IDesignBaseControl
    ...
    See more | Go to post

    Leave a comment:


  • Franna Tech
    started a topic How to extend controls with base class?

    How to extend controls with base class?

    Hi

    I have a BaseClass

    Code:
    public class BaseClass
    {
        [XmlIgnore]
        public PropertyGrid PropertyGridControl
        [XmlAttribute("Name")]
        public string Name
        { get; set; }
    }
    Then I have multiple classes that I want to derive from controls and inherit / implement the BaseClass.

    Code:
    public class MyLabel : Label
    {   
    }
    
    public
    ...
    See more | Go to post
    Last edited by Niheel; Feb 27 '11, 06:04 AM.
No activity results to display
Show More
Working...