Click here to Skip to main content
15,880,427 members
Articles / Web Development / IIS

Programmatically Manage IIS

Rate me:
Please Sign up or sign in to vote.
4.48/5 (12 votes)
27 Nov 2008CPOL5 min read 73.7K   1.8K   55  
Base library for programmatically managing IIS through C# and Directory Services.
namespace Sarafian.IISTreeView
{
    partial class MainForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.pTree = new System.Windows.Forms.Panel();
            this.tvEntries = new System.Windows.Forms.TreeView();
            this.pGrid = new System.Windows.Forms.Panel();
            this.dgvProperties = new System.Windows.Forms.DataGridView();
            this.pButtons = new System.Windows.Forms.Panel();
            this.btnRefresh = new System.Windows.Forms.Button();
            this.btnNewRandomSite = new System.Windows.Forms.Button();
            this.btnStart = new System.Windows.Forms.Button();
            this.btnStop = new System.Windows.Forms.Button();
            this.btnRestart = new System.Windows.Forms.Button();
            this.pTree.SuspendLayout();
            this.pGrid.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvProperties)).BeginInit();
            this.pButtons.SuspendLayout();
            this.SuspendLayout();
            // 
            // pTree
            // 
            this.pTree.Controls.Add(this.tvEntries);
            this.pTree.Dock = System.Windows.Forms.DockStyle.Left;
            this.pTree.Location = new System.Drawing.Point(0, 100);
            this.pTree.Name = "pTree";
            this.pTree.Size = new System.Drawing.Size(200, 449);
            this.pTree.TabIndex = 0;
            // 
            // tvEntries
            // 
            this.tvEntries.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tvEntries.Location = new System.Drawing.Point(0, 0);
            this.tvEntries.Name = "tvEntries";
            this.tvEntries.Size = new System.Drawing.Size(200, 449);
            this.tvEntries.TabIndex = 0;
            this.tvEntries.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvEntries_AfterSelect);
            // 
            // pGrid
            // 
            this.pGrid.Controls.Add(this.dgvProperties);
            this.pGrid.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pGrid.Location = new System.Drawing.Point(200, 100);
            this.pGrid.Name = "pGrid";
            this.pGrid.Size = new System.Drawing.Size(550, 449);
            this.pGrid.TabIndex = 1;
            // 
            // dgvProperties
            // 
            this.dgvProperties.AllowUserToAddRows = false;
            this.dgvProperties.AllowUserToDeleteRows = false;
            this.dgvProperties.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvProperties.Dock = System.Windows.Forms.DockStyle.Fill;
            this.dgvProperties.Location = new System.Drawing.Point(0, 0);
            this.dgvProperties.Name = "dgvProperties";
            this.dgvProperties.ReadOnly = true;
            this.dgvProperties.Size = new System.Drawing.Size(550, 449);
            this.dgvProperties.TabIndex = 0;
            // 
            // pButtons
            // 
            this.pButtons.Controls.Add(this.btnRestart);
            this.pButtons.Controls.Add(this.btnStop);
            this.pButtons.Controls.Add(this.btnStart);
            this.pButtons.Controls.Add(this.btnRefresh);
            this.pButtons.Controls.Add(this.btnNewRandomSite);
            this.pButtons.Dock = System.Windows.Forms.DockStyle.Top;
            this.pButtons.Location = new System.Drawing.Point(0, 0);
            this.pButtons.Name = "pButtons";
            this.pButtons.Size = new System.Drawing.Size(750, 100);
            this.pButtons.TabIndex = 2;
            // 
            // btnRefresh
            // 
            this.btnRefresh.Location = new System.Drawing.Point(12, 12);
            this.btnRefresh.Name = "btnRefresh";
            this.btnRefresh.Size = new System.Drawing.Size(75, 23);
            this.btnRefresh.TabIndex = 0;
            this.btnRefresh.Text = "Refresh";
            this.btnRefresh.UseVisualStyleBackColor = true;
            this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
            // 
            // btnNewRandomSite
            // 
            this.btnNewRandomSite.Location = new System.Drawing.Point(93, 12);
            this.btnNewRandomSite.Name = "btnNewRandomSite";
            this.btnNewRandomSite.Size = new System.Drawing.Size(164, 23);
            this.btnNewRandomSite.TabIndex = 0;
            this.btnNewRandomSite.Text = "New Random Site";
            this.btnNewRandomSite.UseVisualStyleBackColor = true;
            this.btnNewRandomSite.Click += new System.EventHandler(this.btnNewRandomSite_Click);
            // 
            // btnStart
            // 
            this.btnStart.Location = new System.Drawing.Point(264, 13);
            this.btnStart.Name = "btnStart";
            this.btnStart.Size = new System.Drawing.Size(75, 23);
            this.btnStart.TabIndex = 1;
            this.btnStart.Text = "Start";
            this.btnStart.UseVisualStyleBackColor = true;
            this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
            // 
            // btnStop
            // 
            this.btnStop.Location = new System.Drawing.Point(345, 13);
            this.btnStop.Name = "btnStop";
            this.btnStop.Size = new System.Drawing.Size(75, 23);
            this.btnStop.TabIndex = 1;
            this.btnStop.Text = "Stop";
            this.btnStop.UseVisualStyleBackColor = true;
            this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
            // 
            // btnRestart
            // 
            this.btnRestart.Location = new System.Drawing.Point(426, 13);
            this.btnRestart.Name = "btnRestart";
            this.btnRestart.Size = new System.Drawing.Size(75, 23);
            this.btnRestart.TabIndex = 1;
            this.btnRestart.Text = "Restart";
            this.btnRestart.UseVisualStyleBackColor = true;
            this.btnRestart.Click += new System.EventHandler(this.btnRestart_Click);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(750, 549);
            this.Controls.Add(this.pGrid);
            this.Controls.Add(this.pTree);
            this.Controls.Add(this.pButtons);
            this.Name = "MainForm";
            this.Text = "MainForm";
            this.Load += new System.EventHandler(this.MainForm_Load);
            this.pTree.ResumeLayout(false);
            this.pGrid.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgvProperties)).EndInit();
            this.pButtons.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Panel pTree;
        private System.Windows.Forms.TreeView tvEntries;
        private System.Windows.Forms.Panel pGrid;
        private System.Windows.Forms.DataGridView dgvProperties;
        private System.Windows.Forms.Panel pButtons;
        private System.Windows.Forms.Button btnNewRandomSite;
        private System.Windows.Forms.Button btnRefresh;
        private System.Windows.Forms.Button btnRestart;
        private System.Windows.Forms.Button btnStop;
        private System.Windows.Forms.Button btnStart;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader ALGOSYSTEMS
Greece Greece
I live in Athens Greece and currently I am working with Business scale application with .NET latest technologies

I've been developing applications for personal and friends usage with C++ using majorly Borland's various IDEs since 1994.
In 2002 I began working for an R&D institute where I was introduced to C# which I worships ever since.

I love core application development and I would like to publish more articles here and on my blog, but there is not enough time to do so.

I usualy "waste" my spare time watching sitcoms, preferable SCI-FI.
I would like to play chess but I can't find any real world players to hang out with.

Comments and Discussions