Click here to Skip to main content
Click here to Skip to main content

Firefox Option Dialog User Control for .NET Win Apps

, 19 Jan 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
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.


Firefox Dialog is a user control that you could easily add in your application with minimum coding to have a Firefox like options dialog in your .NET app. Control.FirefoxDialog is just 24kb with 72kb MozBar implementation (96kb total).


Patrik Bohman has provided a great control named MozBar. While another C# Win App PagedDialog (unfortunately I don't remember the URL and author name) provided a basic property page implementation, what I was looking for is a combination of the above two, i.e., a Firefox like Options dialog. I wish too that it requires almost no effort to add Firefox like options dialog in your application.

Using the Control

  • Compile Control.FirefoxDialog project to obtain DLL
  • Create a Windows Application project and add a form Form1
  • Right click on Toolbox and click Choose Items...
  • Select/Browse for Control.FirefoxDialog.dll
  • In Toolbox, look for FirefoxDialog Control and drag drop on Form1
  • Add an imageList imageList1 in Form1 and include one image for each tab
  • Add a user control PageEmail derived from Control.FirefoxDialog.PropertyPage
  • Similarly add other pages/tabs user control
  • Now type the following code in your Form1_Load:
private void Form1_Load(object sender, EventArgs e)
    this.firefoxDialog1.ImageList = this.imageList1;

    this.firefoxDialog1.AddPage("Main", new PageMain());
    this.firefoxDialog1.AddPage("Email", new PageEmail());
    this.firefoxDialog1.AddPage("Internet", new PageInternet());
    this.firefoxDialog1.AddPage("Spell", new PageSpell());
    this.firefoxDialog1.AddPage("Favourites", new PageFav());


This is it! Press F5 to run the application. You could override the following in your user controls:

namespace Demo
    public partial class PageEmail : Control.FirefoxDialog.PropertyPage
        public PageEmail()

        public override void OnInit()
            MessageBox.Show("PageEmail.OnInit Called.
		Put your loading logic here.
		Note that this method is called only Once!", "Control.FirefoxDialog");

        public override void OnSetActive()
            MessagBox.Show("PageEmail.OnSetActive Called.
		Put code that you wish to call whenever Email tab become active.
		Note that this method will be every time Email is activated!", 

        public override void OnApply()
            MessageBox.Show("PageEmail.OnApply Called.
		Put your saving logic here.
		It will be called when you hit Apply button.", 


  • 19th January, 2007: Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
Pakistan Pakistan
Software engineer developing solutions using Microsoft technologies.

Comments and Discussions

Generalbug...Apply click ...when call from Form.ShowDialog()... Pinmember_Kay_7-Jun-11 22:37 
GeneralRe: OK...I solved. Pinmember_Kay_7-Jun-11 23:42 
GeneralAuthor and link for PagedDialog PinmemberDaniel C.12-Nov-09 14:41 
Generaljump from one page to another Pinmemberbkaratte22-Jul-09 6:36 
GeneralLicense PinmemberTeflon12-Oct-08 2:40 
GeneralExactly what I looked for PinmemberSven Grand22-Feb-08 6:25 
GeneralPagedDialog Pinmemberlogan133726-May-07 14:04 
GeneralRe: PagedDialog Pinmembernguyenphuphi6-Jul-09 8:07 
QuestionScrolling PinmemberBrad Bruce25-Jan-07 6:54 
AnswerRe: Scrolling PinmemberRafey25-Jan-07 19:05 
GeneralVery useful for me PinmemberAxis2325-Jan-07 1:36 
GeneralNice work! Pinmembertimothy_russell22-Jan-07 16:44 
GeneralRe: Nice work! PinmemberRafey22-Jan-07 19:16 
GeneralRe: Nice work! Pinmembertimothy_russell23-Jan-07 12:25 
GeneralRe: Nice work! Pinmembertimothy_russell23-Jan-07 16:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150327.1 | Last Updated 19 Jan 2007
Article Copyright 2007 by Rafey
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid