471,305 Members | 1,428 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Collection of custom user controls.

Hello all

I am trying to create several controls (textbox, richtextbox, combobox,
etc.) with added functionality (example: change background color on
enter, return to normal on exit). All this functionality is common to
all of the controls, and I'd like a way to create it just once, rather
than once for each control.

To clarify, I have one control declared as follows:

public class DataEntryTextbox : System.Windows.Forms.TextBox

and another declared as:

public class DataEntryRichTextbox : System.Windows.Forms.RichTextBox

They have precisely the same overrides and added functionality. I'd
like to be able to control these overrides from one place and not have
to worry about changing them every place that I implement them.

Any ideas?

Thanks in advance!

Jul 21 '05 #1
0 924

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sundown | last post: by
3 posts views Thread by Carlo \(MCP only\) | last post: by
2 posts views Thread by osmarjunior | last post: by
19 posts views Thread by Jamey Shuemaker | last post: by
6 posts views Thread by npaulus | last post: by
reply views Thread by cranley | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.