Creating a New Tab

The following example demonstrates how to create and add a new tab to the Fiddler UI.

C#

using Fiddler;
 
[assembly: Fiddler.RequiredVersion("2.2.2.0")]  //Necessary for Fiddler to load the assembly
 
namespace NewTabExample
{
    public class TabDemo: IFiddlerExtension
    {
        //Required Function
        public void OnLoad()
        {
            TabPage oPage = new TabPage("TabExample");
            oPage.ImageIndex = (int)Fiddler.SessionIcons.Timeline;  //This sets the Icon image used in the tab
 
            UserControl1 oView = new UserControl1(); //UserControl1 is a Windows Forms UserControl class
            oView.Dock = DockStyle.Fill;
 
            oPage.Controls.Add(oView);
 
            FiddlerApplication.UI.tabsViews.TabPages.Add(oPage);
        }
 
        //Required Function
        public void OnBeforeUnload()
        {
        }
    }
}

VB

TODO
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License