Click here to Skip to main content
15,886,664 members
Articles / Programming Languages / C#

A Floating Popup Control

Rate me:
Please Sign up or sign in to vote.
3.64/5 (11 votes)
4 May 2006CPOL2 min read 115.8K   2.9K   68  
A floating popup control which can display any form.
using System;
using System.Windows.Forms;
using System.ComponentModel;
namespace FloatingPopup
{
	/// <summary>
	/// Summary description for IFloatingPopup.
	/// </summary>
	public interface IFloatingPopup
	{
		
		event CancelEventHandler PopupHiding;
		event CancelEventHandler PopupShowing;
		event EventHandler PopupHidden;
		event EventHandler PopupShown;
		void Show();
		void Hide();
		void ForceShow();
		System.Windows.Forms.UserControl UserControl
		{
			get;
			set;
		}
		void SetAutoLocation();
		Form PopupForm
		{
			get;
		}
	}
}

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
Software Developer (Senior) KAZ Software Limited
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions