Click here to Skip to main content
15,893,487 members
Articles / Multimedia / GDI+

Pretty IE Toolbar in C#

Rate me:
Please Sign up or sign in to vote.
4.89/5 (39 votes)
9 Sep 2008CPOL5 min read 173.8K   4.8K   121  
The article describes the work principles and ways of use of IEToolbarEngine. This is a toolbar for Internet Explorer, which has a reusable architecture.
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace IEToolbarEngine
{
    //internal class RssTickerEx : RssTicker
    //{
    //    public RssTickerEx (IEToolbarEngine engine, string name)
    //        : base (engine, name)
    //    {
    //    }

    //    internal string FeedName
    //    {
    //        get { return Path.GetFileNameWithoutExtension (this.CacheFileName); }
    //    }

    //    protected override void LoadSettings ()
    //    {     
    //        string val = engine.LoadString (FeedName);
    //        if (!string.IsNullOrEmpty (val)) this.Url = val;
    //    }

    //    protected override void CreateAdditionalLinks ()
    //    {
    //        System.Windows.Forms.ToolStripItem configureItem = this.linkListButton.DropDownItems.Add (configureTitle);
    //        configureItem.Click += new EventHandler (configureItem_Click);
    //    }

    //    override internal string Url
    //    {
    //        get { return base.Url; }
    //        set
    //        {   
    //            base.Url = value;
    //            engine.SaveString (FeedName, value);
    //            Refresh ();
    //        }
    //    }

    //    void configureItem_Click (object sender, EventArgs e)
    //    {
    //        ConfigureRSS dlg = new ConfigureRSS (this);
    //        dlg.ShowDialog ();
    //    }

    //    public override bool RestoreGuts (System.Xml.XmlElement element)
    //    {
    //        Reset ();
    //        try
    //        {
    //            try
    //            {
    //                configureTitle = ReadStringByTag (element, GetMenuItem (element, "Configure").Attributes ["caption"].Value);
    //            }
    //            catch (Exception) { }
                 
    //            return base.RestoreGuts(element);
    //        }
    //        catch (Exception)
    //        {
    //        }

    //        return false;
    //    }


    //    protected string configureTitle = "Configure...";
    //}
}

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
Russian Federation Russian Federation
Alexandr Golovanov is a .NET developer at KB_Soft Group, an offshore software development company located in Russia, Novosibirsk. Here he has worked
on various .NET projects.

Comments and Discussions