Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing a TabControl
Message
 
To
12/11/2004 11:10:35
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00960845
Message ID:
00960882
Views:
8
What is the minimum code to subclass a control, it all look very confusing to me... Do i need to implement the Dispose() and the InitializeComponent methods ? or is this code would be just fine:
using System;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Windows.Forms;


namespace Test.GUI
{
	[ToolboxBitmap(typeof(TextBox))]
	public class _EditBox : System.Windows.Forms.TextBox 
	{
		public _EditBox() : base()
		{
			this.Multiline = true;
		}
	}
}
See, i'm looking to subclass all controls i will use, and probably add more functionallity later to them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform