473,699 Members | 3,022 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?


Nov 20 '05 #1
2 2363
Hi Patrick,

Did you already look at this link?


I hope this helps?


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.

-----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.
I hope this helps?


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

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
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...
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...
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.
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:
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?
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
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
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....
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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,...
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...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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...
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...
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
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.