Click here to Skip to main content
15,892,674 members
Articles / Programming Languages / C#

Firefox Option Dialog User Control for .NET Win Apps

Rate me:
Please Sign up or sign in to vote.
4.86/5 (13 votes)
19 Jan 2007CPOL1 min read 91K   1.6K   90  
Have your .NET Windows application cool Firefox option dialog with almost no effort. This user control is written in C# and could be used in any .NET compliant language.
/*--------------------------------------------------------------------------------------
 * Author: Rafey
 * 
 * Comments: Firefox Option Dialog User Control for .NET Win Apps
 * 
 * Email: syedrafey@gmail.com
 * 
 -------------------------------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Demo
{
	public partial class PageEmail : Control.FirefoxDialog.PropertyPage
	{
		public PageEmail()
		{
			InitializeComponent();
		}

		public override void OnInit()
		{
			MessageBox.Show("PageEmail.OnInit Called.\n\nPut your loading logic here.\nNote that this method is called only Once!", "Control.FirefoxDialog");
		}

		public override void OnSetActive()
		{
			MessageBox.Show("PageEmail.OnSetActive Called.\n\nPut code that you wish to call whenever Email tab become active.\nNote that this method will be every time Email is activated!", "Control.FirefoxDialog");
		}

		public override void OnApply()
		{
			MessageBox.Show("PageEmail.OnApply Called.\n\nPut your saving logic here.\nIt will be called when you hit Apply button.", "Control.FirefoxDialog");
		}
	}
}

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
Web Developer
Pakistan Pakistan
Software engineer developing solutions using Microsoft technologies.

Comments and Discussions