BaseTaskForm.SetContent(Control) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);