Click here to Skip to main content
15,893,663 members
Articles / Desktop Programming / Windows Forms

Simple Way to Develop Server Software for File Manipulation

Rate me:
Please Sign up or sign in to vote.
4.86/5 (16 votes)
15 Mar 2012CPOL10 min read 34K   923   43  
This is a simple server software for copying file from one directory to other but the technique can be used to develop in any server software.
namespace FileSystem.Replication.Server
{
    partial class FrmMain
    {
        /// <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.TblLayOutMainContainer = new System.Windows.Forms.TableLayoutPanel();
            this.PnlFooter = new System.Windows.Forms.Panel();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.BtnStart = new System.Windows.Forms.Button();
            this.BtnStop = new System.Windows.Forms.Button();
            this.BtnClose = new System.Windows.Forms.Button();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.BtnCopyTo = new System.Windows.Forms.Button();
            this.LblCopyFrom = new System.Windows.Forms.Label();
            this.BtnCopyFrom = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.TxtCopyTo = new System.Windows.Forms.TextBox();
            this.TxtCopyFrom = new System.Windows.Forms.TextBox();
            this.TxtLog = new System.Windows.Forms.RichTextBox();
            this.TblLayOutMainContainer.SuspendLayout();
            this.PnlFooter.SuspendLayout();
            this.tableLayoutPanel2.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.SuspendLayout();
            // 
            // TblLayOutMainContainer
            // 
            this.TblLayOutMainContainer.ColumnCount = 1;
            this.TblLayOutMainContainer.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.TblLayOutMainContainer.Controls.Add(this.PnlFooter, 0, 2);
            this.TblLayOutMainContainer.Controls.Add(this.tableLayoutPanel1, 0, 0);
            this.TblLayOutMainContainer.Controls.Add(this.TxtLog, 0, 1);
            this.TblLayOutMainContainer.Dock = System.Windows.Forms.DockStyle.Fill;
            this.TblLayOutMainContainer.Location = new System.Drawing.Point(0, 0);
            this.TblLayOutMainContainer.Name = "TblLayOutMainContainer";
            this.TblLayOutMainContainer.RowCount = 3;
            this.TblLayOutMainContainer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F));
            this.TblLayOutMainContainer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.TblLayOutMainContainer.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
            this.TblLayOutMainContainer.Size = new System.Drawing.Size(722, 517);
            this.TblLayOutMainContainer.TabIndex = 13;
            // 
            // PnlFooter
            // 
            this.PnlFooter.Controls.Add(this.tableLayoutPanel2);
            this.PnlFooter.Dock = System.Windows.Forms.DockStyle.Fill;
            this.PnlFooter.Location = new System.Drawing.Point(3, 470);
            this.PnlFooter.Name = "PnlFooter";
            this.PnlFooter.Size = new System.Drawing.Size(716, 44);
            this.PnlFooter.TabIndex = 9;
            // 
            // tableLayoutPanel2
            // 
            this.tableLayoutPanel2.ColumnCount = 5;
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel2.Controls.Add(this.BtnStart, 1, 0);
            this.tableLayoutPanel2.Controls.Add(this.BtnStop, 2, 0);
            this.tableLayoutPanel2.Controls.Add(this.BtnClose, 3, 0);
            this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
            this.tableLayoutPanel2.RowCount = 1;
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel2.Size = new System.Drawing.Size(716, 44);
            this.tableLayoutPanel2.TabIndex = 12;
            // 
            // BtnStart
            // 
            this.BtnStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.BtnStart.Location = new System.Drawing.Point(241, 3);
            this.BtnStart.Name = "BtnStart";
            this.BtnStart.Size = new System.Drawing.Size(74, 23);
            this.BtnStart.TabIndex = 4;
            this.BtnStart.Text = "Start";
            this.BtnStart.UseVisualStyleBackColor = true;
            this.BtnStart.Click += new System.EventHandler(this.BtnStart_Click);
            // 
            // BtnStop
            // 
            this.BtnStop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.BtnStop.Location = new System.Drawing.Point(321, 3);
            this.BtnStop.Name = "BtnStop";
            this.BtnStop.Size = new System.Drawing.Size(74, 23);
            this.BtnStop.TabIndex = 5;
            this.BtnStop.Text = "Stop";
            this.BtnStop.UseVisualStyleBackColor = true;
            this.BtnStop.Click += new System.EventHandler(this.BtnStop_Click);
            // 
            // BtnClose
            // 
            this.BtnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.BtnClose.Location = new System.Drawing.Point(401, 3);
            this.BtnClose.Name = "BtnClose";
            this.BtnClose.Size = new System.Drawing.Size(74, 23);
            this.BtnClose.TabIndex = 6;
            this.BtnClose.Text = "Close";
            this.BtnClose.UseVisualStyleBackColor = true;
            this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click);
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 3;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
            this.tableLayoutPanel1.Controls.Add(this.BtnCopyTo, 2, 1);
            this.tableLayoutPanel1.Controls.Add(this.LblCopyFrom, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.BtnCopyFrom, 2, 0);
            this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.TxtCopyTo, 1, 1);
            this.tableLayoutPanel1.Controls.Add(this.TxtCopyFrom, 1, 0);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(716, 74);
            this.tableLayoutPanel1.TabIndex = 11;
            // 
            // BtnCopyTo
            // 
            this.BtnCopyTo.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BtnCopyTo.Location = new System.Drawing.Point(639, 40);
            this.BtnCopyTo.Name = "BtnCopyTo";
            this.BtnCopyTo.Size = new System.Drawing.Size(30, 23);
            this.BtnCopyTo.TabIndex = 3;
            this.BtnCopyTo.Text = "....";
            this.BtnCopyTo.UseVisualStyleBackColor = true;
            this.BtnCopyTo.Click += new System.EventHandler(this.BtnCopyTo_Click);
            // 
            // LblCopyFrom
            // 
            this.LblCopyFrom.Dock = System.Windows.Forms.DockStyle.Right;
            this.LblCopyFrom.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F);
            this.LblCopyFrom.Location = new System.Drawing.Point(3, 0);
            this.LblCopyFrom.Name = "LblCopyFrom";
            this.LblCopyFrom.Size = new System.Drawing.Size(94, 37);
            this.LblCopyFrom.TabIndex = 8;
            this.LblCopyFrom.Text = " Copy from";
            this.LblCopyFrom.TextAlign = System.Drawing.ContentAlignment.TopRight;
            // 
            // BtnCopyFrom
            // 
            this.BtnCopyFrom.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BtnCopyFrom.Location = new System.Drawing.Point(639, 3);
            this.BtnCopyFrom.Name = "BtnCopyFrom";
            this.BtnCopyFrom.Size = new System.Drawing.Size(30, 25);
            this.BtnCopyFrom.TabIndex = 2;
            this.BtnCopyFrom.Text = "....";
            this.BtnCopyFrom.UseVisualStyleBackColor = true;
            this.BtnCopyFrom.Click += new System.EventHandler(this.BtnCopyFrom_Click);
            // 
            // label2
            // 
            this.label2.Dock = System.Windows.Forms.DockStyle.Right;
            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F);
            this.label2.Location = new System.Drawing.Point(3, 37);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(94, 37);
            this.label2.TabIndex = 7;
            this.label2.Text = "Copy to";
            this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
            // 
            // TxtCopyTo
            // 
            this.TxtCopyTo.Dock = System.Windows.Forms.DockStyle.Fill;
            this.TxtCopyTo.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F);
            this.TxtCopyTo.Location = new System.Drawing.Point(103, 40);
            this.TxtCopyTo.Name = "TxtCopyTo";
            this.TxtCopyTo.Size = new System.Drawing.Size(530, 22);
            this.TxtCopyTo.TabIndex = 1;
            // 
            // TxtCopyFrom
            // 
            this.TxtCopyFrom.Dock = System.Windows.Forms.DockStyle.Fill;
            this.TxtCopyFrom.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F);
            this.TxtCopyFrom.Location = new System.Drawing.Point(103, 3);
            this.TxtCopyFrom.Name = "TxtCopyFrom";
            this.TxtCopyFrom.Size = new System.Drawing.Size(530, 22);
            this.TxtCopyFrom.TabIndex = 0;
            // 
            // TxtLog
            // 
            this.TxtLog.BackColor = System.Drawing.SystemColors.HighlightText;
            this.TxtLog.Dock = System.Windows.Forms.DockStyle.Fill;
            this.TxtLog.Location = new System.Drawing.Point(3, 83);
            this.TxtLog.Name = "TxtLog";
            this.TxtLog.ReadOnly = true;
            this.TxtLog.Size = new System.Drawing.Size(716, 381);
            this.TxtLog.TabIndex = 14;
            this.TxtLog.Text = "";
            // 
            // FrmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(722, 517);
            this.Controls.Add(this.TblLayOutMainContainer);
            this.Name = "FrmMain";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "FileSystem Replication Server";
            this.Load += new System.EventHandler(this.FrmMain_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
            this.TblLayOutMainContainer.ResumeLayout(false);
            this.PnlFooter.ResumeLayout(false);
            this.tableLayoutPanel2.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.TableLayoutPanel TblLayOutMainContainer;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label LblCopyFrom;
        private System.Windows.Forms.Panel PnlFooter;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
        public System.Windows.Forms.RichTextBox TxtLog;
        public System.Windows.Forms.TextBox TxtCopyTo;
        public System.Windows.Forms.TextBox TxtCopyFrom;
        public System.Windows.Forms.Button BtnCopyTo;
        public System.Windows.Forms.Button BtnCopyFrom;
        public System.Windows.Forms.Button BtnStart;
        public System.Windows.Forms.Button BtnStop;
        public System.Windows.Forms.Button BtnClose;
    }
}

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
Chief Technology Officer RightKnack Limited
Bangladesh Bangladesh
A big fan of getting down the latest cutting-edge technologies to the ground to innovate exceptionally amazing ideas.

My Blog: http://rashimuddin.wordpress.com/

My Email: rashimiiuc at yahoo dot com

Comments and Discussions