473,387 Members | 1,535 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.

Duplicate controls on tab pages

I would like to create 4 tab pages in a tab control. 1 tab is for
properties, 1 is for status and 2 of the tabs will have the same
controls on them, for settings. The two settings tab pages will
contain identical Check boxes and Radio buttons within GroupBoxes. I
created the tab control with 3 tab pages using the toolbox (1 property
tab, 1 status tab and 1 settings tab). Then, at run time, I add the
forth tab page (if needed) and tried copying the controls from the
original tab page onto the new tab page:

For simplicity, I will only show the code for duplicating one control.
The control on the original settings page is gbRTO

Dim p2TabPg as New TabPage
Dim p2gb_RTO as New GroupBox

p2TabPg.Text = "Settings:Pole2"
tabSensor.TabPages.Add(p2TabPg)

p2gb_RTO = gbRTO
tabSensor.TabPages(3).Controls.Add(p2gb_RTO)

When I run the code, the new control is placed on the new settings page
but the original control disappears from the original settings page.

Is there any way to do what I want without creating the forth tab
manually? If there isn't, is there a way to make the forth tab
invisible if it isn't needed?

Thanks,
Stacy

Apr 13 '06 #1
4 4125
"stacy" <st***@sensorswitch.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
I would like to create 4 tab pages in a tab control. 1 tab is for
properties, 1 is for status and 2 of the tabs will have the same
controls on them, for settings. The two settings tab pages will


No real help here... just a warning <g> Take care when doing things like
you're describing or your UI may end up here....

Interface Hall of Shame
- Tabbed Dialogs -
http://homepage.mac.com/bradster/iarchitect/tabs.htm

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Apr 13 '06 #2
Can't you use a panel control and link it to another borderless form?
I think you could use the same borderless form for tab pages three and
four? (I'm at home without any references and don't even have VB.NET
on my home computer, but when I go to work, I can look at code where I
did this very thing)

Apr 14 '06 #3
I looked at how this was done. The thing I remember now is that the
form added to the panel's control must have the .toplevel property set
to false. For some reason, .toplevel doesn't show up in autocomplete.

Apr 14 '06 #4
Thanks for the tip, I'm a bit confused by what you mean when you say to
link a panel control to another borderless form? Do you mean that I
should lay a borderless form on the tab and the panel on top of the
form? Ultimately it would be great if I could create the old control
array type of design and put say
checkboxLED(0) on the third tab page and checkboxLED(1) on forth tab
page. The way if we ever have a product which needs 3 or 4...
different settings pages, the code is more easily expandable and
maintainable. Let me tell you also, that I am not a VB.net expert by
any means, I would say beginner/intermediate if I had to categorize
myself. My background is mostly in low level machine control and
driver development.

Stacy

Apr 20 '06 #5

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

Similar topics

3
by: F C | last post by:
I have http://localhost/myweb1 who redirect me to my pages. I would like to have http://localhost/myweb2 which I would like to use the same exact set of pages, except a different global.asa...
3
by: Donna Price | last post by:
I have a problem with a database which I've recently separated into several related tables. I have a main data entry form, which has several subforms on it on tabbed pages. The first subform is...
8
by: Ray | last post by:
I have a data input form and need to automatically duplicate the existing record as a new record by clicking a button. The main purpose to duplicate the record is that the new record is very...
3
by: Nhmiller | last post by:
I searched here for an answer. I am entering records into a database, and it would save a lot of time if I could duplicate a record that is very similar to the new one I am about to enter, then...
2
by: borajetta | last post by:
ERROR: duplicate key violates unique constraint "pg_class_oid_index" I found a post earlier but wanted to post up my info as the other persons did not look like the same type of error: I tried...
16
by: =?iso-8859-2?Q?K=F8i=B9tof_=AEelechovski?= | last post by:
I need a form control for the user to enter currency symbol. A select control seems to be fit for that purpose; but the problem is that the control must appear on the page several times so the...
6
waynetheengineer
by: waynetheengineer | last post by:
Hi all, I have a database that has two tables: 1 table shows different types of animals: e.g. rabbits, bears, birds, etc. a 2nd table that links to each animal type that has individual animals...
2
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
Does anyone know a way to allow duplicate URL's in a sitemap? Here's my problem: I'm designing (almost done) an online store with the following navigational structure: Home / Department /...
1
by: Abandoned | last post by:
Hi.. I'm working a search engine project now. And i have a problem. My problem is Duplicate Contents.. I can find the percentage of similarity between two pages but i have a 5 millions index and...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.