this.button1.Click += new System.EventHandler(this.button1_Click);
(the above code is normally auto generated by visual studio in the form.designer.cs file)
So I want to do this same sort of thing but I want the textbox control itself to register an event handling method with the button's click event.
I have a feeling that this can only be achieved by creating a custom control that extends textbox. Is this correct?

New Topic/Question
Reply




MultiQuote










|