Thanks, that's what i was thinking, all this MSDN documentation, books are all very confusing.
Thank god i have you and the UT.
>Stephane,
>
>What you have just posted is just about right ... you don't need all that extra gobbledy-gook that you had in your first post. The only change I would make to what you have just posted is:
>
> public _EditBox()
> {
> this.Multiline = true;
> }
>
>I took out the ": base()" ... it's not necessary here.
>
>~~Bonnie
>
>
>
>>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.