473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Creating my own Tabcontrol-like control in VB.Net

Hi there.
First of all, sorry for the double post, but I was not sure about which was
the most correct group for this question...
I am trying to create my own control that will be alot like the control
Outlook 2003 has where you can choose "mail", "Calendar", etc.
However, I've got two questions.
1) If you add a tab control, you can choose which tab you want to add
controls to in the development environment. How can I add this functionality
to my own control?
2) Each tab page has its own panel, and you can add controls to it at design
time. How can I archieve this with my own control?

Thank you for your time!

André Nogueira
Nov 21 '05 #1
6 2622

"André Nogueira" <an**@netcabo.pt.NOSPAM>
I am trying to create my own control that will be alot like the control
Outlook 2003 has where you can choose "mail", "Calendar", etc.
However, I've got two questions.
1) If you add a tab control, you can choose which tab you want to add
controls to in the development environment. How can I add this
functionality to my own control?
2) Each tab page has its own panel, and you can add controls to it at
design time. How can I archieve this with my own control?


Hi André,

I know that this is not an answer to your question but I have made the
experience that buying such a control is cheaper than doing it oneself from
scratch.

Here are two links to commercial controls:

http://www.devcomponents.com/dotnetbar/
http://www.windowsforms.net/ControlG...328&tabindex=0
http://www.infragistics.com/products/lookandfeel.asp

Cheers

Arne Janning
Nov 21 '05 #2
Yeah, I know. But I have lots of free time and am doing this just for the
fun of it, until I go to college in October.
I already made, for instance, Office 2003-style menus though there are many
around.
It's just a way of learning new things and experimenting.
If I were doing a commercial program, I'd definately buy the controls as
oposed to writing my bug-filled ones from scratch ;)
Thank you for your suggestion though!

Andre Nogueira

"Arne Janning" <sp*****************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

"André Nogueira" <an**@netcabo.pt.NOSPAM>
I am trying to create my own control that will be alot like the control
Outlook 2003 has where you can choose "mail", "Calendar", etc.
However, I've got two questions.
1) If you add a tab control, you can choose which tab you want to add
controls to in the development environment. How can I add this
functionality to my own control?
2) Each tab page has its own panel, and you can add controls to it at
design time. How can I archieve this with my own control?


Hi André,

I know that this is not an answer to your question but I have made the
experience that buying such a control is cheaper than doing it oneself
from scratch.

Here are two links to commercial controls:

http://www.devcomponents.com/dotnetbar/
http://www.windowsforms.net/ControlG...328&tabindex=0
http://www.infragistics.com/products/lookandfeel.asp

Cheers

Arne Janning

Nov 21 '05 #3
* "André Nogueira" <an**@netcabo.pt.NOSPAM> scripsit:
I am trying to create my own control that will be alot like the control
Outlook 2003 has where you can choose "mail", "Calendar", etc.
However, I've got two questions.
1) If you add a tab control, you can choose which tab you want to add
controls to in the development environment. How can I add this functionality
to my own control?
2) Each tab page has its own panel, and you can add controls to it at design
time. How can I archieve this with my own control?


Take a look at the implementation of the explorer bar's design-time
support in the Visual Basic PowerPack:

<URL:http://www.gotdotnet.com/Community/Workspaces/workspace.aspx?id=167542e0-e435-4585-ae4f-c111fe60ed58>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #4
"André Nogueira" <an**@netcabo.pt.NOSPAM> schrieb
Hi Andrč,

If you are not a commercial programmer I totally agree with you: there is no
better way of learning Windows.Forms than developing one's own controls.

Unfortunately, AFAIK there are no free implementations or at least how-to's
that describe how to implement a Outlook 2003-style Tabbar.

So you'll have to do everything on your own... (The learning effect might
even be bigger :-)

Cheers

Arne Janning
Nov 21 '05 #5
Yeah, I know I have to do it all by myself.
The only questions I have are the ones I posted on my first post.
I found some code about the expanding control panels coded in VB.net that
mimic the controls found in Windows XP's Windows Explorer.
I'll look at them and take it from there.

Cheers

Andre Nogueira

"Arne Janning" <sp*****************@msn.com> wrote in message
news:ew**************@TK2MSFTNGP12.phx.gbl...
"André Nogueira" <an**@netcabo.pt.NOSPAM> schrieb
Hi Andrč,

If you are not a commercial programmer I totally agree with you: there is
no better way of learning Windows.Forms than developing one's own
controls.

Unfortunately, AFAIK there are no free implementations or at least
how-to's that describe how to implement a Outlook 2003-style Tabbar.

So you'll have to do everything on your own... (The learning effect might
even be bigger :-)

Cheers

Arne Janning

Nov 21 '05 #6
I have not looked into designing an outlook bar like in V2003, but I suggest
that this article:

http://www.codeproject.com/cs/miscctrl/csoutlookbar.asp

....might lead you to some answers to your basic questions... True it is not
in VB.NET but the basic design principals are the same.

"André Nogueira" <an**@netcabo.pt.NOSPAM> wrote in message
news:uL**************@tk2msftngp13.phx.gbl...
Hi there.
First of all, sorry for the double post, but I was not sure about which was the most correct group for this question...
I am trying to create my own control that will be alot like the control
Outlook 2003 has where you can choose "mail", "Calendar", etc.
However, I've got two questions.
1) If you add a tab control, you can choose which tab you want to add
controls to in the development environment. How can I add this functionality to my own control?
2) Each tab page has its own panel, and you can add controls to it at design time. How can I archieve this with my own control?

Thank you for your time!

André Nogueira

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dylan | last post by:
I need to create some runtime controls in a TabControl I've tried doing the following but no controls appear txtBox = New TextBo tabCtrl.TabPages.Item(2).Controls.Add(txtBox) ' 2 being the...
1
by: Paiam Salavati | last post by:
I want to change the the color of the tabs and the color of TabControl itself in a TabControl. Therefore I wrote the following code in my customized TabControl-class: this.DrawMode =...
2
by: Patrick McGuire | last post by:
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...
5
by: Max | last post by:
This is a two part question. First, how does one go about designing forms that can reflect the XP theme? Take the TabControl for example, even on default the one that you can use in VB.NET looks...
3
by: Henry Wu | last post by:
Hi, NumericUpDown control has a InterceptArrowKeys property, is there such a thing for a TabControl? I want to prevent the TabPages from switching to one another when the Left & Right arrow keys...
5
by: Zadkin | last post by:
Does anyone know, if it's possible to set the orientation of the tabpagebuttons to horizontal instead of vertical when the alignment property of my tabcontrol is set to left or right? Thanks in...
1
by: vooose | last post by:
Consider adding a TabPage with size=(300,300) to a TabControl, then calling tabControl.ClientSize=tabPage.Size; You would think tabControl.Size must now be BIGGER than tabControl.ClientSize...
2
by: michael sorens | last post by:
After extensive searching of the docs, I find no mention of support for Ctrl-Tab and Ctrl-Shift-Tab to navigate among tabs in a TabControl. I am surprised that such a common/standard keyboard...
0
by: Gustaf | last post by:
Using VS 2005. I'm hardly the first to discover this, but here's a description of the bug as I found it: 1. Make a new form. 2. Add a SplitContainer and make it horizontal. 3. Add a TabControl...
2
by: Claudia Fong | last post by:
Hi, I added a tabcontrol in a panel in my form. My tabcontrol have more than 3 pages.. each page contains textboxes, combobox, checkbox. I want to disable the items of each of the page of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
jinu1996
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...

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.