Click here to Skip to main content
15,897,226 members
Articles / Programming Languages / XML

Share the Clipboard Using .NET Remoting

Rate me:
Please Sign up or sign in to vote.
5.00/5 (18 votes)
14 Oct 20026 min read 161.9K   3.3K   70  
Use .NET remoting to send the contents of your clipboard to another computer
#region Copyright � 2002 Serlio Software Development Corporation
/***************************************************************************
*
* Copyright � 2002 Serlio Software Development Corporation
*
* This software is provided 'as-is', without any express or implied warranty. In no
* event will the authors be held liable for any damages arising from the use of this
* software.
*
* Permission is granted to anyone to use this software for any purpose, including
* commercial applications, and to alter it and redistribute it freely, subject to the
* following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not claim that
* you wrote the original software. If you use this software in a product, an
* acknowledgment (see the following) in the product documentation is required.
*
* Portions Copyright � 2002 Serlio Software Development Corporation
*
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
*
* 3. This notice may not be removed or altered from any source distribution.
*
***************************************************************************/
#endregion

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace About
{
	/// <summary>
	/// Summary description for Form2.
	/// </summary>
	public class AboutBox : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.LinkLabel mailLinkLabel;
		private System.Windows.Forms.LinkLabel urlLinkLabel;
		private System.Windows.Forms.Button okButton;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public AboutBox()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			urlLinkLabel.Links.Add(0, 18, "www.serliosoft.com");
			mailLinkLabel.Links.Add(0, 19, "mailto:info@serliosoft.com");
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(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()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AboutBox));
			this.label1 = new System.Windows.Forms.Label();
			this.okButton = new System.Windows.Forms.Button();
			this.urlLinkLabel = new System.Windows.Forms.LinkLabel();
			this.label2 = new System.Windows.Forms.Label();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.mailLinkLabel = new System.Windows.Forms.LinkLabel();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.Color.Transparent;
			this.label1.Location = new System.Drawing.Point(96, 40);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(176, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "Copyright � 2002 Serlio Software";
			// 
			// okButton
			// 
			this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.okButton.Location = new System.Drawing.Point(96, 216);
			this.okButton.Name = "okButton";
			this.okButton.TabIndex = 1;
			this.okButton.Text = "OK";
			// 
			// urlLinkLabel
			// 
			this.urlLinkLabel.BackColor = System.Drawing.Color.Transparent;
			this.urlLinkLabel.Location = new System.Drawing.Point(96, 72);
			this.urlLinkLabel.Name = "urlLinkLabel";
			this.urlLinkLabel.Size = new System.Drawing.Size(104, 23);
			this.urlLinkLabel.TabIndex = 2;
			this.urlLinkLabel.TabStop = true;
			this.urlLinkLabel.Text = "www.serliosoft.com";
			this.urlLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
			// 
			// label2
			// 
			this.label2.BackColor = System.Drawing.Color.Transparent;
			this.label2.Location = new System.Drawing.Point(96, 24);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(176, 23);
			this.label2.TabIndex = 3;
			this.label2.Text = "ClipShare   Version 1.0";
			// 
			// pictureBox1
			// 
			this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
			this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image")));
			this.pictureBox1.Location = new System.Drawing.Point(8, 8);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(72, 102);
			this.pictureBox1.TabIndex = 4;
			this.pictureBox1.TabStop = false;
			// 
			// mailLinkLabel
			// 
			this.mailLinkLabel.BackColor = System.Drawing.Color.Transparent;
			this.mailLinkLabel.Location = new System.Drawing.Point(96, 88);
			this.mailLinkLabel.Name = "mailLinkLabel";
			this.mailLinkLabel.Size = new System.Drawing.Size(112, 23);
			this.mailLinkLabel.TabIndex = 5;
			this.mailLinkLabel.TabStop = true;
			this.mailLinkLabel.Text = "info@serliosoft.com";
			this.mailLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.mailLinkLabel_LinkClicked);
			// 
			// AboutBox
			// 
			this.AcceptButton = this.okButton;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(266, 255);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.label1,
																		  this.mailLinkLabel,
																		  this.pictureBox1,
																		  this.label2,
																		  this.urlLinkLabel,
																		  this.okButton});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "AboutBox";
			this.Text = "About ClipShare";
			this.ResumeLayout(false);

		}
		#endregion

		private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
		}

		private void mailLinkLabel_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
		{
			System.Diagnostics.Process.Start(e.Link.LinkData.ToString());
		}
	}
}

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.


Written By
Architect Serlio Software
United States United States
Doug is co-founder of Serlio Software, creators of CaseComplete use case authoring and requirements management tool. Prior to Serlio, he worked at Rational Software on the Rose and XDE products. He's old enough to remember when Rose fit on a single floppy.

Comments and Discussions