Inheriting textbox and setting property values

csharp United States
  • 18 years ago

    After creating a new class that inherits the System.Windows.Forms.TextBox, in the new class I would like to set the value of the default Name for the TextBox (other defaults as well) when a new instance is created by dragging the control from the Toolbox and dropping it on a Form. Any idea how to do this?


    Kyle

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.”