Hi,
I have a form with a TabControl on it, I have 6 tabs across the top of the
page. What I'd like to do is have all but the first and second tab visible
when the app starts and then as the user completes the data on the first tab
and clicks to the second tab, the third tab appears. What I am trying to
avoid is the user not jumping to the next but one tab as each tab determines
the contents of the one that follows it.
In the properties for the tabpages there are properties like hide and show
but they just don't appear to have any effect when running the app?
Anyone know the answer?
--
Siv
Martley, Near Worcester, UK. 6 2194
Hi,
Here is some code for a tab control which has a tab page change
event. If the tab page is no enabled you can cancel the change to the page. http://www.windowsformsdatagridhelp....3-f5a4dd0afac4
There is no way to hide or show a tab page. You must add or
remove the page from the tab page collection to hide or show it.
Ken
---------------
"Siv" <ms**********@r emoveme.sivill. com> wrote in message
news:ua******** ******@TK2MSFTN GP14.phx.gbl... Hi, I have a form with a TabControl on it, I have 6 tabs across the top of the page. What I'd like to do is have all but the first and second tab visible when the app starts and then as the user completes the data on the first tab and clicks to the second tab, the third tab appears. What I am trying to avoid is the user not jumping to the next but one tab as each tab determines the contents of the one that follows it.
In the properties for the tabpages there are properties like hide and show but they just don't appear to have any effect when running the app?
Anyone know the answer?
-- Siv Martley, Near Worcester, UK.
As Ken said, the only thing you can do is either Add or Remove the Tabpage(s). You can put code to add the additional
tabpage(s) in the current tab's Click Event( TabControl1.Tab Pages.Add(Tab1) ) and if you need to remove
tabpages(TabCon trol1.TabPages. Remove(Tab1) ), you can use a Select Case construct to decide to remove Tabpages. One thing to
watch for is if the user clicks more than one time on the Tabpage in question as it will continue to add TabPages. So, you need
to keep a count and not allow more than those you want to be added or removed.
james
"Siv" <ms**********@r emoveme.sivill. com> wrote in message news:ua******** ******@TK2MSFTN GP14.phx.gbl... Hi, I have a form with a TabControl on it, I have 6 tabs across the top of the page. What I'd like to do is have all but the first and second tab visible when the app starts and then as the user completes the data on the first tab and clicks to the second tab, the third tab appears. What I am trying to avoid is the user not jumping to the next but one tab as each tab determines the contents of the one that follows it.
In the properties for the tabpages there are properties like hide and show but they just don't appear to have any effect when running the app?
Anyone know the answer?
-- Siv Martley, Near Worcester, UK.
"Siv" <ms**********@r emoveme.sivill. com> schrieb: I have a form with a TabControl on it, I have 6 tabs across the top of the page. What I'd like to do is have all but the first and second tab visible when the app starts and then as the user completes the data on the first tab and clicks to the second tab, the third tab appears. What I am trying to avoid is the user not jumping to the next but one tab as each tab determines the contents of the one that follows it.
<URL:http://dotnetrix.co.uk/tabcontrols.htm l>
-> "Hide and Show Tabpages in a Tabcontrol."
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Guys,
Many thanks for your replies and useful links, I can see I am going to have
my work cut out!
One thing I am not sure about (before having read the links you kindly
pointed me to) is the issue that I have designed the contents of the tab
pages in advance, if I remove them and the re-add them can I use the ones
that are already designed, or must I effectively populate them
programmaticall y.
Could I create a tabcontrol that I don't use on screen and then selectively
copy the pages as needed from this into the one on screen.
I suppose what I am asking is what would be the group's best advice??
--
Siv
Martley, Near Worcester, UK.
"Siv" <ms**********@r emoveme.sivill. com> wrote in message
news:ua******** ******@TK2MSFTN GP14.phx.gbl... Hi, I have a form with a TabControl on it, I have 6 tabs across the top of the page. What I'd like to do is have all but the first and second tab visible when the app starts and then as the user completes the data on the first tab and clicks to the second tab, the third tab appears. What I am trying to avoid is the user not jumping to the next but one tab as each tab determines the contents of the one that follows it.
In the properties for the tabpages there are properties like hide and show but they just don't appear to have any effect when running the app?
Anyone know the answer?
-- Siv Martley, Near Worcester, UK.
"Siv" <ms**********@r emoveme.sivill. com> wrote in message news:eH******** ******@TK2MSFTN GP14.phx.gbl... Guys, Many thanks for your replies and useful links, I can see I am going to have my work cut out! One thing I am not sure about (before having read the links you kindly pointed me to) is the issue that I have designed the contents of the tab pages in advance, if I remove them and the re-add them can I use the ones that are already designed, or must I effectively populate them programmaticall y.
Could I create a tabcontrol that I don't use on screen and then selectively copy the pages as needed from this into the one on screen. I suppose what I am asking is what would be the group's best advice??
-- Siv Martley, Near Worcester, UK.
After designing your TabPages, with all the controls on each one ( Buttons, textboxes etc.) in the Form Designer, your Tabpages
will continue to contain all the different controls that you originally put on them
when added or removed. You will not have to recreate them during add/remove. And if you have data, (depending on how you
populate your controls......T extboxes for example) it too should remain until you do something to change it.
james
James,
Thanks for this, I have copied the very useful code from the dotnetrix.co.uk
site ( http://dotnetrix.co.uk/tabcontrols.html) and modified it to my own
construction and I tried what you said. It does work all my tabs re-appear
with their original controls still on them. Brilliant thanks to you and the
other guys that pitched in.
--
Siv
Martley, Near Worcester, UK.
"james" <jjames700ReMoV eMe at earthlink dot net> wrote in message
news:uI******** ******@TK2MSFTN GP10.phx.gbl... "Siv" <ms**********@r emoveme.sivill. com> wrote in message news:eH******** ******@TK2MSFTN GP14.phx.gbl... Guys, Many thanks for your replies and useful links, I can see I am going to have my work cut out! One thing I am not sure about (before having read the links you kindly pointed me to) is the issue that I have designed the contents of the tab pages in advance, if I remove them and the re-add them can I use the ones that are already designed, or must I effectively populate them programmaticall y.
Could I create a tabcontrol that I don't use on screen and then selectively copy the pages as needed from this into the one on screen. I suppose what I am asking is what would be the group's best advice??
-- Siv Martley, Near Worcester, UK.
After designing your TabPages, with all the controls on each one ( Buttons, textboxes etc.) in the Form Designer, your Tabpages will continue to contain all the different controls that you originally put on them when added or removed. You will not have to recreate them during add/remove. And if you have data, (depending on how you populate your controls......T extboxes for example) it too should remain until you do something to change it. james This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mark Johnson |
last post by:
You have an, a, anchor with href link.
Can you use a stylesheet to effectively disable the link, so that you
can't click on it; that it will appear simply as text?
|
by: lori3laz |
last post by:
How do you disable the right click>view source option on web pages so people
can't view your coding and copy it? What's the html I need to include in my
website to utilize this feature?
Thank you.
|
by: ASGMikeG |
last post by:
Hi,
I'm upgrading an application from VB6 to .NET. It used tab controls in VB6
to achieve a tab dialogue / wizard type effect - navigating from one tab to
the next as the user filled in information.
When this has upgraded to .NET the user can suddenly click on the other tabs
without having completed the previous tabs i.e. the other tabs are not
disabled - only the controls on them are.
How do I disable and/or hide a tab page so that...
|
by: PerryC |
last post by:
I have search googles and there are hundreds of tips about
AllowByPassKey... however, none works for me... well, perhaps I am too
new to such high level functionality that it just does not make sense
to me. So, anyone please help. I have no idea what is
"CreateProperty" that Access help was trying to tell me to do. Can
anyone please write me a step by step on how to accomplish this?
(i.e. disable Shift on Startup.) I've seen many...
|
by: Raghu Raman |
last post by:
Hi,
we are doing an in house project in c#.net(asp.net).We wanted to close
our application when ever the user presses the SIGNOUT button. Even
though we programtically disconnects them from the database,when we
press the Internet explorers Back button ,all the browsed pages are
displayed with the data**.
1.could you pls tell me how to disable the back-button of IE
| |
by: Stan Sainte-Rose |
last post by:
Hi,
I've a Tabcontrol and I 'd like to disable a tabpage
I try to use the hide and visible property but it doesn't work.
Thx
Stan
|
by: emferrari |
last post by:
Hi
I have a program with a tabControl which contains 6 tabs. During the
execution of the program I want to Enable/Disable some of the tabs but
I did not find any way to do that. I've tried to use the Hide/Show
methods but without success.
Does anyone have any suggestion on this?
Thanks!
|
by: alamodgal |
last post by:
hiiiiiiiiiii everybody,
pls solve my problem if u can?
Actualy what happens in my site when i press enter key it will show some secured information related to my site.So for that i have use this code to disable enter key:
<script type="text/javascript" language="javascript">
/*-----script to disable F5 key begin-----*/
var version = navigator.appVersion;
function...
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |