Add an Icon to Your Extension's Tab

Use an Existing Icon

Set the .ImageIndex property as follows:

	public void OnLoad()
	{
	oPage = new TabPage("Timeline");
	oPage.ImageIndex = (int)Fiddler.SessionIcons.Timeline;
	oView = new TimelineView();
	oPage.Controls.Add(oView);
	oView.Dock = DockStyle.Fill;
	FiddlerApplication.UI.tabsViews.TabPages.Add(oPage); 
	}

Add a Custom Image

  1. Add the image to imglSessionIcons.

  2. Set the .ImageIndex property as follows:

     public void OnLoad()
     {
     oPage = new TabPage("Timeline");
     oPage.ImageIndex = (int)Fiddler.SessionIcons.Timeline;
     oView = new TimelineView();
     oPage.Controls.Add(oView);
     oView.Dock = DockStyle.Fill;
     FiddlerApplication.UI.tabsViews.TabPages.Add(oPage); 
     }