Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing a TabControl
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Subclassing a TabControl
Divers
Thread ID:
00960845
Message ID:
00960845
Vues:
72
I'm tring to subclass a TabControl control and add it to my toolbox, when i try to use it and add pages, i cannot access the pages, what am i doing wrong ?

Here's the code:
using System;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Windows.Forms;


namespace Test.GUI
{

	[ToolboxBitmap(typeof(TabControl))]
	[DesignerAttribute(typeof(System.Windows.Forms.Design.ControlDesigner))]	
	public class _TabControl : System.Windows.Forms.TabControl 
	{
		private System.ComponentModel.Container components = null;

		public _TabControl()
		{
			InitializeComponent();
		}
		private void InitializeComponent()
		{
			System.ComponentModel.Container components = new Container();
		}
	
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if( components != null )
					components.Dispose();
			}
			base.Dispose( disposing );
		}
	}
}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform