Hey there!
I have a tabcontrol on one of my forms. Some of the tab should not be
accessable (and thus invisible) until you give the correct password. But I
can't hide the tab...
tabSecrets1.Vis ible=false
tabSecrets1.Hid e
will not work, the tab is visible :(
Any help is appreciated
Kejpa 8 7543
Kejpa,
You can add and remove tappages from the tabcontrol using those methods.
With that you have than directly overcome the strange bug in the tabcontrol.
Cor Hey there! I have a tabcontrol on one of my forms. Some of the tab should not be accessable (and thus invisible) until you give the correct password. But I can't hide the tab... tabSecrets1.Vis ible=false tabSecrets1.Hid e will not work, the tab is visible :(
Any help is appreciated Kejpa
Hey Cor,
in my form_load event I set pgSecret1.Visib le=false but it's still visible.
If I use pgSecret1.Hide it's also there.
I guess I'm too tired to see what's really simple, so.... Just a small
snippet, plz :)
Regards
Kejpa
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:eA******** ******@tk2msftn gp13.phx.gbl... Kejpa,
You can add and remove tappages from the tabcontrol using those methods.
With that you have than directly overcome the strange bug in the
tabcontrol. Cor
Hey there! I have a tabcontrol on one of my forms. Some of the tab should not be accessable (and thus invisible) until you give the correct password. But
I can't hide the tab... tabSecrets1.Vis ible=false tabSecrets1.Hid e will not work, the tab is visible :(
Any help is appreciated Kejpa
On Thu, 21 Oct 2004 15:45:06 +0300, Kejpa wrote: tabSecrets1.Vis ible=false tabSecrets1.Hid e
Hide and the Visible property of tab pages does NOT work. It has a bug.
In order to make a tab not appear in the tab control, you must REMOVE it
from the tab control using the Remove method.
--
Chris
dunawayc[AT]sbcglobal_lunch meat_[DOT]net
To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Hey there, all of you.
Guess what?
It's not working, at all. The Visible property is there but has no function,
same thing with the Hide method.
In order to hide it you have to set it's parent to Nothing, it reappear when
you set the parent back to the original control, but not in the original
position.
Guess .NET v 1.0 really should have been .NET v 0.1 :(
Things working swell in VB6 should work with the new framework too, IMHO
/Kejpa
"Kejpa" <kS*******@saj. fi> wrote in message
news:cl******** **@gandalf.alco m.aland.fi... Hey Cor, in my form_load event I set pgSecret1.Visib le=false but it's still
visible. If I use pgSecret1.Hide it's also there.
I guess I'm too tired to see what's really simple, so.... Just a small snippet, plz :)
Regards Kejpa
"Cor Ligthert" <no************ @planet.nl> wrote in message news:eA******** ******@tk2msftn gp13.phx.gbl... Kejpa,
You can add and remove tappages from the tabcontrol using those methods.
With that you have than directly overcome the strange bug in the tabcontrol. Cor
Hey there! I have a tabcontrol on one of my forms. Some of the tab should not be accessable (and thus invisible) until you give the correct password.
But I can't hide the tab... tabSecrets1.Vis ible=false tabSecrets1.Hid e will not work, the tab is visible :(
Any help is appreciated Kejpa
"Kejpa" <kS*******@saj. fi> schrieb: I have a tabcontrol on one of my forms. Some of the tab should not be accessable (and thus invisible) until you give the correct password. But I can't hide the tab... tabSecrets1.Vis ible=false tabSecrets1.Hid e will not work, the tab is visible :(
<URL:http://www.dotnetrix.c o.uk/tabcontrols.htm l>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Kepja,
\\\
Private Sub Form1_Load(ByVa l sender As Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
Me.TabControl1. Controls.Remove (Me.TabPage1)
Me.TabControl1. Controls.Remove (Me.TabPage2)
Me.TabControl1. Controls.Remove (Me.TabPage3)
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, _
ByVal e As System.EventArg s) Handles Button1.Click
Me.TabControl1. Controls.Add(Me .TabPage1)
Me.TabControl1. Controls.Add(Me .TabPage2)
Me.TabControl1. Controls.Add(Me .TabPage3)
End Sub
///
Like this?
Cor
"Kejpa" <kS*******@saj. fi> Hey Cor, in my form_load event I set pgSecret1.Visib le=false but it's still visible. If I use pgSecret1.Hide it's also there.
I guess I'm too tired to see what's really simple, so.... Just a small snippet, plz :)
Regards Kejpa
"Cor Ligthert" <no************ @planet.nl> wrote in message news:eA******** ******@tk2msftn gp13.phx.gbl... Kejpa,
You can add and remove tappages from the tabcontrol using those methods.
With that you have than directly overcome the strange bug in the tabcontrol. Cor
> Hey there! > I have a tabcontrol on one of my forms. Some of the tab should not be > accessable (and thus invisible) until you give the correct password. > But I > can't hide the tab... > tabSecrets1.Vis ible=false > tabSecrets1.Hid e > will not work, the tab is visible :( > > Any help is appreciated > Kejpa > >
Try, Me.TabControl1. TabPages.Remove (pgSecret1)
TabPages.Visibl e or TabPages.Hide does not work.
KC
"Kejpa" <kS*******@saj. fi> wrote in message
news:cl******** **@gandalf.alco m.aland.fi... Hey Cor, in my form_load event I set pgSecret1.Visib le=false but it's still visible. If I use pgSecret1.Hide it's also there.
I guess I'm too tired to see what's really simple, so.... Just a small snippet, plz :)
Regards Kejpa
"Cor Ligthert" <no************ @planet.nl> wrote in message news:eA******** ******@tk2msftn gp13.phx.gbl... Kejpa,
You can add and remove tappages from the tabcontrol using those methods.
With that you have than directly overcome the strange bug in the tabcontrol. Cor
> Hey there! > I have a tabcontrol on one of my forms. Some of the tab should not be > accessable (and thus invisible) until you give the correct password. > But I > can't hide the tab... > tabSecrets1.Vis ible=false > tabSecrets1.Hid e > will not work, the tab is visible :( > > Any help is appreciated > Kejpa > >
"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcg lobal[dot]]net"> wrote in
message news:1g******** *************** *****@40tude.ne t... Hide and the Visible property of tab pages does NOT work. It has a bug.
According to some MVP it's not a bug it's a feature!
The visible property really works!
You can set the visible property of one page to True and the visible
property of the current page to False and then you will see the other page
without changeing the tabheader! THAT's a feature longed for.... NOT!
The Visible property is inherited from Control and that's why it's there,
it's used internally for the TabControl to know which page to show. What I
can't understand is why they didn't set it to Private/Protected.
And I can't understand why the TabVisible(inde x) property of the VB6
TabbedDialog didn't make the .NET cut?!?
That's my 2c
Kejpa This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: TMB333 |
last post by:
I've researched as much as I can on the issue, but I've not found any clearly
defined statement that acknowledges that the Hide method for a TabPage object
just doesn't do what it's supposed to do. This appears to be a bug, or maybe
I'm using it incorrectly?
TabPage.Hide should hide the referenced TabPage object, should it not? Do I
have to 'refresh' the Windows form somehow?
The closest I've come to any means of hiding a TabPage from...
|
by: Thanos |
last post by:
Hi everybody.
Excuse my english is not perfect.
I would to hide TabPages but I have tried
>> TabPage.hide() or
>> TabPage.Visible = False
but no luck. Maybe the current Tab control doesn't support hiding/unhiding
|
by: Steve |
last post by:
Visual Studio 2003 C# Windows:
I have a tree view control as my main menu control down the left side of my
application. This has 2 Parent Nodes on it (Jobs and Employees). beneath
these 2 main functions I have 2 sub functions under each("Add Job", "View
Jobs" and "Add User", "View Users"). I have theses subfunctions grouped in a
TabControl, so there are 2 TabControl objects on my main screen, each with 2
pages on.
When the user...
|
by: Robb Gilmore |
last post by:
Hello,
This is probably an easy one, but I have not been able to figure it out so
far. I have a tab control on a windows forms app. Depending on some
business logic, I need to hide/show some of the individual tabs.
The tab page has no "visible" property. The tabpage class has a "hide"
method, but this does not seem to make it disappear. I have been able to
remove them via something like this:
|
by: Fei Li |
last post by:
| |
by: MAF |
last post by:
How do I hide a tabpage of a given tab control?
//Disable other tabs until item is saved
this.tabPage2.Hide(); //this doesn't work
this.tabPage3.Hide();
this.tabPage4.Hide();
|
by: Siv |
last post by:
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...
|
by: xyz |
last post by:
Hi,
I have two tab control on two different pages. On one tabControl I need
the tab headers. When I remove the tabpage from this tabControl and put
it on another one I don't want to show the tabpage header. If I have to
move the tabpage again back to the 1st tab control, the tab header must
show up again.
Anyone has any idea how I can hide the tabpage header ?
|
by: Amit |
last post by:
Can anyone write the code to hide tabpage of tab control in windows
form 2.0
Thanks,
Amit
|
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: 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: 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: 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.
| |