473,404 Members | 2,187 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,404 software developers and data experts.

Why can't we disable a tab page?

Cat
Most of the basic UI controls have Enabled property. I know we can't
disable a specific tab page, but why is it so? What is the rationale?
I don't think Microsoft developers designed that way because they
couldn't implement it.
Jun 27 '08 #1
5 1283
Cat.

You can simple remove it temporaly from the TabPageControl.Controls

\\\
YourTabpageControl.Controls.Remove(TheTab)
///

What you think wabout the implementation of the Microsoft developers.
Everybody is free to do it himself if he can do it better.

Cor

"Cat" <ty*******@gmail.comschreef in bericht
news:24**********************************@y18g2000 pre.googlegroups.com...
Most of the basic UI controls have Enabled property. I know we can't
disable a specific tab page, but why is it so? What is the rationale?
I don't think Microsoft developers designed that way because they
couldn't implement it.
Jun 27 '08 #2
"Cat" <ty*******@gmail.comschrieb
Most of the basic UI controls have Enabled property. I know we can't
disable a specific tab page, but why is it so? What is the
rationale? I don't think Microsoft developers designed that way
because they couldn't implement it.
Have a look at the appropriate m.p.d.framework.* group. This one's for
VB.Net language related problems.
Armin

Jun 27 '08 #3
Cat wrote:
Most of the basic UI controls have Enabled property. I know we can't
disable a specific tab page, but why is it so? What is the rationale?
I don't think Microsoft developers designed that way because they
couldn't implement it.
I don't know why. I use a third party tab control, where each tab page has a
Visible and an Enabled property. It is both possible and useful.

Jun 27 '08 #4
You can still set a page to Enabled = False. Then in the selecting you
have to set e.Cancel to true to cancel it, e.g:
e.Cancel = Not e.TabPage.Enabled
But the real issue is you need to set it to ownerdrawn and draw the tab
captions in the DrawItem events.

"Cat" <ty*******@gmail.comwrote in message
news:24**********************************@y18g2000 pre.googlegroups.com...
Most of the basic UI controls have Enabled property. I know we can't
disable a specific tab page, but why is it so? What is the rationale?
I don't think Microsoft developers designed that way because they
couldn't implement it.
Jun 27 '08 #5
Hi
In the load event of the corresponding form set the drawmode property of
the tab control, it will allow you to disable any tab page
Tabcontrol.DrawMode = TabDrawMode.OwnerDrawFixed

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #6

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

Similar topics

2
by: jason | last post by:
Is it possible to POST a FORM to multiple URLS at the same time....OR.... Is the only workaround for this scenario to use response.redirect in the called ASP page and do a multi processing? -...
4
by: KS | last post by:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try...
9
by: Gino Elloso - Philippines | last post by:
Hello, I made a webpage ( @ Geocities Free Webpages ) that contains a mousetrail clock script. I simply copied the script ( including all html tags ) exactly as it was from a source webpage (...
4
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to...
22
by: Matt | last post by:
When browsing a web page a user has the ability to highlight content on a page (by holding down the left mouse button and dragging the mouse over the desired content). Is there a way to disable...
6
by: | last post by:
hi, how to disable the controls in page? thanks For each myControl in Page.Controls 'want to disable myControl? Next
6
by: ron | last post by:
1. Can I disable a user control in a web page? 2. Can I disable the 'close' function on the top-right corner of a popup window, so I can use code-behind function to close the browser?
4
by: Phoe6 | last post by:
Hi all, I am trying to disable the NIC card (and other cards) enabled in my machine to test diagnostics on that card. I am trying to disable it programmatic using python. I checked python wmi and...
3
hsriat
by: hsriat | last post by:
How can I temporarily disable vertical scrollbar? I have replaced confirmation boxes and alert boxes with inlay popup DIVs. But while they are on the screen, I need to disable scrollbar of the...
16
by: nagmvs | last post by:
Hi, Can any one tell me How to disable Keyboard Functions using JavaScript.If knows please tell me the code.Also tell me the code for mouse disable also. Thanks, Nagesh.
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
Oralloy
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,...
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

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.