By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,084 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,084 IT Pros & Developers. It's quick & easy.

TabControl design editor

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Cor
Hi Patrick,

Did you already look at this link?

http://msdn.microsoft.com/library/de...wfccontrol.asp

I hope this helps?

Cor

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

Nov 20 '05 #2

P: n/a
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
-----Original Message-----
Hi Patrick,

Did you already look at this link?

http://msdn.microsoft.com/library/default.asp? url=/library/en-
us/vbcon/html/vbconwalkthroughcreatingcompositewfccontrol.
asp
I hope this helps?

Cor

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

.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.