
inherited control question
Bob,
You can inherit from the base controls and have them appear in the tools box
like a user control.
once you got your base class started. simply type above your current
inherits statement Inherits SystemWindows.Forms.Usercontrol. If you don't
already have to component window open double click your class file in the
explorer and you will see a Usercontrol designer. An icon will now be in
the toolbox.
Go back into your code and remove the inherits statement you just added.
And you'll stop seeing the blue squiggly line.
Cheers
Randy
Quote:
> I can make an inherited control for all of my user controls, but how do I
> inherit from the built-in ones? I can't seem to find any correlated
.dll's.
> In particular, I want to inherit from the TextBox. I need to do it with
the
> 'Inhertied Control' approach and not just use 'Inherits TextBox' because I
> want to be able to use the new control in the form designer.
> TIA,
> Bob