System.Windows.Forms.FormCollection.Add C# (CSharp) Method

Add() public method

public Add ( Form form ) : void
form Form
return void
        public void Add(Form form)
        {
            items.Add(form);

            Sort();
        }

Usage Example

Example #1
0
 internal static void AddForm(Form f)
 {
     lock (forms)
         forms.Add(f);
     // Signal that a Form has been added to this
     // Application. Used by UIA to detect new Forms that
     // need a11y support. This event may be fired even if
     // the form has already been added, so clients should
     // account for that when handling this signal.
     if (FormAdded != null)
     {
         FormAdded(f, null);
     }
 }