TabControl design editor

  • Thread starter Thread starter Patrick McGuire
  • Start date Start date
P

Patrick McGuire

I want to place a tabControl with almost identical
properties on several forms. I think the best way is to
define a UserControl that inherits
System.Windows.Forms.TabControl, and place all my
controls on it. The problem is that I don't know how to
bring up the graphical design interface for the
TabControl. I suppose I COULD just design it as a
UserControl and place a TabControl on it, but that seems
a bit... inelegant (I'm going to have to reference the
tabControl's child controls when I place the UserControl).

Is there a way to make the UserControl use the TabControl
Designer? Am I going about this all wrong?

Thanks.

Pat
 
Thanks Cor,

Since what I want is just a really just a TabControl with
some TextBoxes and ComboBoxes already placed on it,
rather than building a UserControl and then exposing all
of the TabControl's methods and properties AND all of its
subcontrols' methods and properties, I wanted to build a
control that inherits directly from
System.Windows.Forms.TabControl and uses the TabControl's
designer. That way (I THINK) the TabControl's methods
and properties will ALREADY be exposed to any inheriting
form; AND (it seems to me), if I change the TabControl's
subcontrols' visibility modifiers from 'Friend' to,
say, 'Protected', THEIR properties and methods should be
available to inheriting forms as well. But, like I said,
I might be going about this all wrong.

Thanks for the help.

Pat
 
Back
Top