Click here to Skip to main content
15,896,269 members
Articles / Programming Languages / C#

The NetSend Plus (.NET/C#)

Rate me:
Please Sign up or sign in to vote.
3.58/5 (23 votes)
1 Feb 2005CPOL5 min read 146.8K   6.4K   60  
The "NetSend Plus" is a simple yet a powerful tool, which enables you to send windows popup messages over the network.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace TcNetSendPlus
{
	/// <summary>
	/// Summary description for MoreData.
	/// </summary>
	public class MoreData : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label lblUp;
		private System.Windows.Forms.Label lblMid;
		private System.Windows.Forms.Label lblDown;
		private System.Windows.Forms.Button lbtnOK;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

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

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <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()
		{
			this.lblUp = new System.Windows.Forms.Label();
			this.lblMid = new System.Windows.Forms.Label();
			this.lblDown = new System.Windows.Forms.Label();
			this.lbtnOK = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// lblUp
			// 
			this.lblUp.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblUp.Location = new System.Drawing.Point(8, 8);
			this.lblUp.Name = "lblUp";
			this.lblUp.Size = new System.Drawing.Size(328, 56);
			this.lblUp.TabIndex = 0;
			this.lblUp.Text = "I am L.W.C. Nirosh, a Software Engineer, Work for a company highly reputed for pr" +
				"oviding E-learning solution. We do lots of C# stuff with .NET technology. This i" +
				"s a application developed using .Net/C# on my leasures. So do enjoy.";
			// 
			// lblMid
			// 
			this.lblMid.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)), true);
			this.lblMid.ForeColor = System.Drawing.Color.DarkSlateBlue;
			this.lblMid.Location = new System.Drawing.Point(8, 72);
			this.lblMid.Name = "lblMid";
			this.lblMid.Size = new System.Drawing.Size(328, 24);
			this.lblMid.TabIndex = 1;
			this.lblMid.Text = " Email : c_nirosh@yahoo.com, c_nirosh@hotmail.com.";
			// 
			// lblDown
			// 
			this.lblDown.Location = new System.Drawing.Point(8, 104);
			this.lblDown.Name = "lblDown";
			this.lblDown.Size = new System.Drawing.Size(320, 64);
			this.lblDown.TabIndex = 2;
			this.lblDown.Text = "License :   The terms and conditions for copying, distribution. Nothing serious h" +
				"ere and this software is FREE and you can install and use it any where as you wi" +
				"sh. If you need the source for this software please don\'t hesitate to contact me" +
				".";
			// 
			// lbtnOK
			// 
			this.lbtnOK.Location = new System.Drawing.Point(248, 168);
			this.lbtnOK.Name = "lbtnOK";
			this.lbtnOK.TabIndex = 3;
			this.lbtnOK.Text = "OK";
			this.lbtnOK.Click += new System.EventHandler(this.lbtnOK_Click);
			// 
			// MoreData
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.ClientSize = new System.Drawing.Size(344, 206);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.lbtnOK,
																		  this.lblDown,
																		  this.lblMid,
																		  this.lblUp});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "MoreData";
			this.Text = "MoreData";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.ResumeLayout(false);

		}
		#endregion

		private void lbtnOK_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
	}
}

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
Architect Virtusa Pvt. Ltd.
Sri Lanka Sri Lanka
In-depth coverage of Microsoft .Net, Cloud and many other cutting-edge Technologies.

- The Mandelbrot set – someone has called it the thumb-print of God – is one of the most beautiful and remarkable discoveries in the entire history of mathematics. My profile picture is generated with that equation.

You may contact Nirosh for Consultations, Code Reviews and Architecture Guide Workshops via c_nir*o*sh@hotmail.com (Remove * to use)



View Nirosh L.W.C.'s profile on LinkedIn


Other Links

Comments and Discussions