www.pudn.com > SourceCode_TabControl.zip > TabPage.cs


using System; 
using System.ComponentModel; 
using System.Collections; 
using System.Diagnostics; 
using System.Windows.Forms; 
using System.Drawing.Drawing2D; 
using System.Drawing; 
namespace MyControlLibrary 
{ 
	///  
	/// Summary description for TabPage. 
	///  
	public class TabPageEx : System.Windows.Forms.TabPage 
	{ 
		///  
		/// Required designer variable. 
		///  
		private System.ComponentModel.Container components = null; 
      public TabPageEx(System.ComponentModel.IContainer container) 
		{ 
			/// 
			/// Required for Windows.Forms Class Composition Designer support 
			/// 
			container.Add(this); 
			InitializeComponent(); 
 
			// 
			// TODO: Add any constructor code after InitializeComponent call 
			// 
		} 
 
		public TabPageEx() 
		{ 
			/// 
			/// Required for Windows.Forms Class Composition Designer support 
			/// 
			InitializeComponent(); 
          
			// 
			// TODO: Add any constructor code after InitializeComponent call 
			// 
		} 
 
		///   
		/// Clean up any resources being used. 
		///  
		protected override void Dispose( bool disposing ) 
		{ 
			if( disposing ) 
			{ 
				if(components != null) 
				{ 
					components.Dispose(); 
				} 
			} 
			base.Dispose( disposing ); 
		} 
 
    
       
		#region Component Designer generated code 
		///  
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor. 
		///  
		private void InitializeComponent() 
		{ 
			components = new System.ComponentModel.Container(); 
                
          
		} 
        public override string Text 
        { 
            get 
            { 
                return base.Text+"                                                 "; 
            } 
            set 
            { 
                base.Text = value; 
            } 
        } 
        private ContextMenu ctxtMenu = null; 
        public ContextMenu Menu 
        { 
            get 
            { 
                return this.ctxtMenu; 
            } 
            set 
            { 
 
                this.ctxtMenu = value; 
            } 
        } 
         
           
       
 
		#endregion 
	} 
}