Inheritance - restrict methods etc.

  • Thread starter Thread starter Guest
  • Start date Start date
How much overhead does this method add to a control though? It seems like
it
adds some additional resource overhead because you are now really
including
two controls for every one that you place on a form.

Not much really, and it is one of the 3 well known techniques to create new
controls, "Composite controls", is called. See

Windows Forms Control Development Basics
http://msdn.microsoft.com/library/d...cpconwindowsformscontroldevelopmentbasics.asp
How does this impact thins like tab order and focus as well?

I have not tested it, but it should be explained in the docs. In your case,
with only one control, it should be easy to handle, if some handling is
needed at all.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Yeah, I know all about composite controls... I just never really considered
doing it for the case of one control before...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top