Click here to Skip to main content
15,886,840 members
Articles / Programming Languages / C#

NeoTabControl Library

Rate me:
Please Sign up or sign in to vote.
4.96/5 (110 votes)
28 Sep 2012CPOL16 min read 195.7K   21.3K   163  
A custom .NET tab control for WinForms applications with add-in renderer support.
using System;

namespace NeoTabControlLibrary
{
    public sealed class SelectedIndexChangedEventArgs : EventArgs, IDisposable
    {
        #region Instance Member

        private NeoTabPage tabPage = null;
        private int tabPageIndex = -1;

        #endregion

        #region Constructor

        public SelectedIndexChangedEventArgs(NeoTabPage tabPage, int tabPageIndex)
        {
            this.tabPage = tabPage;
            this.tabPageIndex = tabPageIndex;
        }

        #endregion

        #region Property

        /// <summary>
        /// Gets the zero-based index of the NeoTabPage control in the NeoTabWindow.TabPages control collection.
        /// </summary>
        public int TabPageIndex
        {
            get { return tabPageIndex; }
        }

        /// <summary>
        /// Gets the NeoTabPage control the event is occurring for.
        /// </summary>
        public NeoTabPage TabPage
        {
            get { return tabPage; }
        }

        #endregion

        #region IDisposable Members

        void IDisposable.Dispose()
        {
            GC.SuppressFinalize(this);
        }

        #endregion
    }
}

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
Software Developer (Senior) ARELTEK
Turkey Turkey
Since 1998...

MCPD - Enterprise Application Developer

“Hesaplı hareket ettiğini zanneden ve onunla iftihar eyliyen dar kafalar; kurtulmağa, yükselmeğe elverişli hiç bir eser vücüda getirmezler. Kurtuluş ve yükselişi, ancak varlığına dayanan ve mülkü milletin gizli kapalı hazinelerini verimli hale getirmesini bilen, şahsi menfaatini millet menfaati uğruna feda eden, ruhu idealist, dimağı realist şahsiyetlerde aramalıdır.”

Nuri Demirağ, 1947

Comments and Discussions