I have a TabControl (TabControl1) containing 3 TabPage's (TabPage1, TabPage2
and TabPage3)
under certain circumstances i need to make some of these tab pages invisible
ive tried
me.tabpage1.vis ible = false
but nothing happens and the tab pages is still visible
when i set the whole of the TabControl.Visi ble = False the whole of the tab
control dissapears as it should
how do i set a tabpage to be invisible i would have thought the above would
have worked but it didnt
Thanks
Mike Fellows 5 9164
me.tabcontrol1. tabpages.remove (me.tabpage1)
"Mike Fellows" <mi************ *@equityhouse.c o.uk.SPAM> wrote in message
news:jv******** ***********@new sfep2-win.server.ntli .net... I have a TabControl (TabControl1) containing 3 TabPage's (TabPage1,
TabPage2 and TabPage3)
under certain circumstances i need to make some of these tab pages
invisible ive tried me.tabpage1.vis ible = false
but nothing happens and the tab pages is still visible
when i set the whole of the TabControl.Visi ble = False the whole of the
tab control dissapears as it should
how do i set a tabpage to be invisible i would have thought the above
would have worked but it didnt
Thanks
Mike Fellows
the visible property will return true or false depending if the tabPage has
been selected and is showing.
There is a hide method, but that does not seem to work. I think adding and
removing tabs is a bit drastic though.
;-D
--
Regards - One Handed Man
Author : Fish .NET & Keep .NET
=============== =============== ===========
This posting is provided "AS IS" with no warranties,
and confers no rights.
"Mike Fellows" <mi************ *@equityhouse.c o.uk.SPAM> wrote in message
news:d9******** ***********@new sfep2-win.server.ntli .net... me.tabcontrol1. tabpages.remove (me.tabpage1) "Mike Fellows" <mi************ *@equityhouse.c o.uk.SPAM> wrote in message news:jv******** ***********@new sfep2-win.server.ntli .net... I have a TabControl (TabControl1) containing 3 TabPage's (TabPage1, TabPage2 and TabPage3)
under certain circumstances i need to make some of these tab pages invisible ive tried me.tabpage1.vis ible = false
but nothing happens and the tab pages is still visible
when i set the whole of the TabControl.Visi ble = False the whole of the
tab control dissapears as it should
how do i set a tabpage to be invisible i would have thought the above would have worked but it didnt
Thanks
Mike Fellows
Hello,
"Mike Fellows" <mi************ *@equityhouse.c o.uk.SPAM> schrieb: I have a TabControl (TabControl1) containing 3 TabPage's (TabPage1, TabPage2 and TabPage3)
under certain circumstances i need to make some of these tab pages
invisible ive tried me.tabpage1.vis ible = false
but nothing happens and the tab pages is still visible
The 'Visible' property is not implemented for the 'TabPage'. You may want
to use the TabControl provided with the Magic Library: http://www.dotnetmagic.com/
HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
Hello,
"One Handed Man" <te************ *************** @BTOpenworld.co m> wrote: the visible property will return true or false depending if the tabPage has been selected and is showing.
There is a hide method, but that does not seem to work. I think adding and removing tabs is a bit drastic though.
ACK. But there is no other way for the Windows Forms TabControl.
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
i suppose subclassing it would be the answer for ease of management.
--
Regards - One Handed Man
Author : Fish .NET & Keep .NET
=============== =============== ===========
This posting is provided "AS IS" with no warranties,
and confers no rights.
"Herfried K. Wagner [MVP]" <hi*******@m.ac tivevb.de> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. Hello,
"One Handed Man" <te************ *************** @BTOpenworld.co m> wrote: the visible property will return true or false depending if the tabPage has been selected and is showing.
There is a hide method, but that does not seem to work. I think adding and removing tabs is a bit drastic though.
ACK. But there is no other way for the Windows Forms TabControl.
Regards, Herfried K. Wagner -- MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tamir Khason |
last post by:
How be able to manage more deeply UI of TabControl and TabPage
For example - I want to manage border color, change color of TabPage reef,
eliminate spaces from both sides of the reef, so I bould custom control that
inherit all information from TabPage, but how to access those properties,
not supported by standart interface???
Thank you
|
by: cdj |
last post by:
Hi all,
I've got a tabControl, initially with one tabPage, along with two
buttons, one to add another tabPage, and one to delete the current
(selected) tabPage.
On each tabPage, when it is created, is an pictureBox.
Other stuff on the form leads to the creation of a graphic, say
myImage, which I would like to assign to the pictureBox.Image property
|
by: NewGuy |
last post by:
Is there a way to change the Text format for just the Tab Title?
I have a form with 3 tabs on it
If conditions are met I would like to modify the text on the tab it'sself so
the user knows there is something there
For example I would like the text to be bold... I can't find a
way to do this.
|
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
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...
|
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: Alien2_51 |
last post by:
I have a problem with a ListBox control that is on a TabControl, it seems to
be forgetting which items are selected in the list when I tab off the current
tab, here's my winform code... I even added a click event handler that resets
the selected items based on whats in the collection it is data bound to...
I'm baffled, pounding my head against the wall, it's not working... Please
help...
I tried posting the code but it was too long,...
|
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 advance
Zadkin
|
by: =?Utf-8?B?Qm9i?= |
last post by:
I have converted a VB6 program to Visual Basic 2005 (Running on Windows XP).
I have a TabControl with (2) tabs with left side alignment. My problem;
with 2005 the Tab Captions (Text) does not show (the tabs are there but no
text). If the Tabs are aligned on the Top, there is no problem. My work
area is constrained on the form; therefore Top Alignment is not possible.
The TabControl will work correctly with Windows Vista regardless of...
|
by: =?Utf-8?B?QWxleCBLLg==?= |
last post by:
Hi all
In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two
tabpages. When I set tab control's Alignment property to Right, tab texts
(captions) disappear.
Does anybody know how to fix this?
I tried this on two computers, at work and at home, both with Windows XP
with latest service packs, and Framework 2.0 and 3.0 with latest SP.
|
by: bertie78 |
last post by:
Hi all,
New poster here! I'm having some difficulty updating a tabcontrol cross-threads.
The general idea is : the main thread is the owner of the tab control and the form controls. However, due to the vast amount of data to populate listviews within the tabs, I have created a worker thread (an implementation of a BackgroundWorker) to form the data and populate a tabcontrol 'offline', so that it doesn't interfer with (i.e freeze) the UI. ...
|
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: 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: 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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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...
| |