System.ComponentModel.Container.Add C# (CSharp) Method

Add() public method

Adds the specified component to the . The component is unnamed.

public Add ( IComponent component ) : void
component IComponent
return void
        public virtual void Add(IComponent component)
        {
            Add(component, null);
        }

Same methods

Container::Add ( IComponent component, String name ) : void

Usage Example

 protected FormLog()
 {
     InitializeComponent();
     repaintTimer = new Timer { Interval = 1000 };
     components = new Container();
     components.Add(repaintTimer);
     repaintTimer.Tick += (s, e) => UpdateLines();
     instance = this;
 }
All Usage Examples Of System.ComponentModel.Container::Add