473,782 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TabControl design editor

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.TabContro l, 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
2 2369
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
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.TabContro l 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/vbconwalkthroug hcreatingcompos itewfccontrol.
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7652
by: RA | last post by:
Hi 1) I want to create a TabPage class in design mode - how do I do it? What type of project should I use? Is it going to be a custom control? 2) I have a TabControl that I would like to add to it the TabPage created in step 1. I don't want to draw the TabPage on the Tabcontrol in design mode, but to have a few TabPage controls that I candynamicaly load to the TabControl at runtime. Thanks
4
6659
by: Rachel Suddeth | last post by:
I would like to write a designer verb for a class I have that inherits from TabControl. I figure the only way to do that without breaking the special designer stuff that works for TabControl would be to inherit from whatever Designer class is currently used for the TabControl. But I can't find out what that is. There must be one... I would hope it wouldn't be sealed... anyone know what it's called or how to get information about it? Or know...
4
1236
by: Max | last post by:
I have a form in my project, which based on the user selection (probably from a combo box) has to change its content. I guess the best way to describe it is if I had a TabControl on that form, then depending on the index of selected item from the combobox the corresponding tab would be automatically shown. The problem with that method is that the user would still have the ability to manually select the tabs, and that would cause a few...
9
3458
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so the are set to the right color, I can obviously change the tabpage colour but I am left with a grey top edge(Where there are no buttons) when the background of the form is changed any ideas on what I can do? Mike.
0
1033
by: Juan Pedro Gonzalez | last post by:
Hi, I'm running mad with this issue, hope I can explain it correctlly. I've been developping a user control wich is very similar to the TabControl... Basically my control has two panels that act as containers: one for the buttons and the other one for something similar to the TabPages. For my pages I've declared:
2
2636
by: Richard Carpenter | last post by:
I have a four-page tabcontrol with a gridview on each page. I have the primary key column of each gridview set to hidden (visible = false), but it still shows up on all but the first page. Anyone else see this behavior? How might I correct it?
6
6550
by: pamela fluente | last post by:
Hi, I want to try design a TabControl (for instance http://www.codeproject.com/vb/net/MDITabControl.asp). For design inspiration, I would like to know pointers to beautifully looking tabcontrol design either on the web or within applications. BTW: I do not want copy anything: just to see what has been done
4
1912
by: =?Utf-8?B?VmFuZXNzYQ==?= | last post by:
Hi all! Is it possible to put a textbox ou label after tab control page names? I'd like to put some information after the pages, like this: "Tab Page 1" "Tab Page 2" "Tab Page 3" textbox or label here Thank you! Vanessa
2
2118
by: Jamey | last post by:
Ran into an inconvenience with TabControls yesterday. I found a partial explanation from Allen Browne on the MS message boards explaining when it happens, but not why. I thought Stephen Lebans (who's done a little work with this for his multi-colored listbox class), or someone else might've figured this out. Here's the scenario: DBs created on Windows XP using A2K7 are apparently incapable of displaying TabControl transparency....
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.