Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » Beginners » Downloads
 
Add your own
alternative version

Dot Remoting - Server Activated, SingleCall Technique

, 11 Jan 2011 CPOL
Shows how you can create remote objects and access it from client. Here, it is server activated single call technique
RemotingEx01.zip
ConServer
ConServer
bin
Debug
ConServer.exe
ConServer.vshost.exe
ClassDiagram1.cd
Properties
RemClient
RemClient
bin
Debug
ConServer.exe
RemClient.exe
RemClient.vshost.exe
Properties
Settings.settings
namespace RemClient
{
    partial class RemoteClient
    {
        /// <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.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.txtCustId = new System.Windows.Forms.TextBox();
            this.txtCustName = new System.Windows.Forms.TextBox();
            this.txtLastDeposit = new System.Windows.Forms.TextBox();
            this.txtLastWithdraw = new System.Windows.Forms.TextBox();
            this.btnInvokeRemote = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.ForeColor = System.Drawing.Color.White;
            this.label1.Location = new System.Drawing.Point(24, 7);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(69, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Customer Id :";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.ForeColor = System.Drawing.Color.White;
            this.label2.Location = new System.Drawing.Point(5, 31);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(88, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = "Customer Name :";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.ForeColor = System.Drawing.Color.White;
            this.label3.Location = new System.Drawing.Point(21, 55);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(72, 13);
            this.label3.TabIndex = 2;
            this.label3.Text = "Last Deposit :";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.ForeColor = System.Drawing.Color.White;
            this.label4.Location = new System.Drawing.Point(12, 79);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(81, 13);
            this.label4.TabIndex = 3;
            this.label4.Text = "Last Withdraw :";
            // 
            // txtCustId
            // 
            this.txtCustId.Location = new System.Drawing.Point(99, 4);
            this.txtCustId.Name = "txtCustId";
            this.txtCustId.Size = new System.Drawing.Size(254, 20);
            this.txtCustId.TabIndex = 4;
            // 
            // txtCustName
            // 
            this.txtCustName.Location = new System.Drawing.Point(99, 28);
            this.txtCustName.Name = "txtCustName";
            this.txtCustName.Size = new System.Drawing.Size(254, 20);
            this.txtCustName.TabIndex = 5;
            // 
            // txtLastDeposit
            // 
            this.txtLastDeposit.Location = new System.Drawing.Point(99, 52);
            this.txtLastDeposit.Name = "txtLastDeposit";
            this.txtLastDeposit.Size = new System.Drawing.Size(254, 20);
            this.txtLastDeposit.TabIndex = 6;
            // 
            // txtLastWithdraw
            // 
            this.txtLastWithdraw.Location = new System.Drawing.Point(99, 76);
            this.txtLastWithdraw.Name = "txtLastWithdraw";
            this.txtLastWithdraw.Size = new System.Drawing.Size(254, 20);
            this.txtLastWithdraw.TabIndex = 7;
            // 
            // btnInvokeRemote
            // 
            this.btnInvokeRemote.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
            this.btnInvokeRemote.Location = new System.Drawing.Point(202, 103);
            this.btnInvokeRemote.Name = "btnInvokeRemote";
            this.btnInvokeRemote.Size = new System.Drawing.Size(151, 26);
            this.btnInvokeRemote.TabIndex = 8;
            this.btnInvokeRemote.Text = "Get Details (From Remote)";
            this.btnInvokeRemote.UseVisualStyleBackColor = false;
            this.btnInvokeRemote.Click += new System.EventHandler(this.btnInvokeRemote_Click);
            // 
            // RemoteClient
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Navy;
            this.ClientSize = new System.Drawing.Size(392, 141);
            this.Controls.Add(this.btnInvokeRemote);
            this.Controls.Add(this.txtLastWithdraw);
            this.Controls.Add(this.txtLastDeposit);
            this.Controls.Add(this.txtCustName);
            this.Controls.Add(this.txtCustId);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Name = "RemoteClient";
            this.Text = "Remote Client";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.TextBox txtCustId;
        private System.Windows.Forms.TextBox txtCustName;
        private System.Windows.Forms.TextBox txtLastDeposit;
        private System.Windows.Forms.TextBox txtLastWithdraw;
        private System.Windows.Forms.Button btnInvokeRemote;
    }
}

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)

Share

About the Author

Sivaraman Dhamodharan
Software Developer iSOFT
India India
I am working as software engineer in iSOFT R&D. I have been come accross C++,MFC, .net technologies. I do like playing video games, reading books.
 

Web: www.mstecharticles.com


| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.1411022.1 | Last Updated 12 Jan 2011
Article Copyright 2011 by Sivaraman Dhamodharan
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid