Share via


BaseTaskForm.SetContent(Control) Method

Definition

Sets the controls for the Content View page in IIS Manager.

protected:
 void SetContent(System::Windows::Forms::Control ^ content);
protected void SetContent (System.Windows.Forms.Control content);
member this.SetContent : System.Windows.Forms.Control -> unit
Protected Sub SetContent (content As Control)

Parameters

content
Control

The Control object that represents the panel that contains the controls for the Content View page.

Examples

The following example adds a label, a text box, and a progress bar to a panel. The SetContent method then sets the panel to the Content View page.

Panel contentPanel = new Panel();

SuspendLayout();
try {
    this.Size = new Size(450, 300);

    contentPanel.Controls.Add(_resultsLabel);
    contentPanel.Controls.Add(_detailsTextBox);
    contentPanel.Controls.Add(_progressBar);
} finally {
    ResumeLayout();
}

SetContent(contentPanel);

Applies to