Click here to Skip to main content
15,891,704 members
Articles / Programming Languages / C#

SMTP and POP3 Mail Server

Rate me:
Please Sign up or sign in to vote.
4.88/5 (96 votes)
29 Sep 20031 min read 1M   18.9K   315  
An SMTP and POP3 mail server written using the .NET Framework and C#.
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace LumiSoft.UI.Controls
{
	/// <summary>
	/// Summary description for WMonthCalendar.
	/// </summary>
	[System.ComponentModel.ToolboxItem(false)]
	public class WMonthCalendar : System.Windows.Forms.MonthCalendar
	{
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		/// <summary>
		/// 
		/// </summary>
		public WMonthCalendar()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitForm call

		}

		#region function Dispose

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#endregion

		#region Component 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()
		{
			// 
			// WMonthCalendar
			// 
			this.DateChanged += new System.Windows.Forms.DateRangeEventHandler(this.WMonthCalendar_DateChanged);

		}
		#endregion


		#region Events handling

		private void WMonthCalendar_DateChanged(object sender, System.Windows.Forms.DateRangeEventArgs e)
		{
			this.SetSelectionRange(this.SelectionRange.Start,this.SelectionRange.Start);
		}

		#endregion


		#region function PostMessage

		/// <summary>
		/// 
		/// </summary>
		/// <param name="m"></param>
		public void PostMessage(ref Message m)
		{
			base.WndProc(ref m);
		}

		#endregion


		#region override WndProc

		/// <summary>
		/// 
		/// </summary>
		/// <param name="m"></param>
		protected override void WndProc(ref Message m)
		{			
		//	if(m.Msg == (int)Msgs.WM_LBUTTONUP){
		//		WDatePickerPopUp frm = (WDatePickerPopUp)this.FindForm();
		//		frm.RaiseSelectionChanged();
		//		frm.Close();
		//		return;
		//	}

		//	if(m.Msg == (int)Msgs.WM_LBUTTONDOWN){
		//		return;
		//	}

		//	if(m.Msg == (int)Msgs.WM_MBUTTONDOWN){
		//		return;
		//	}


			base.WndProc(ref m);
		}

		#endregion
		
	}
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Estonia Estonia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions