473,395 Members | 1,466 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,395 software developers and data experts.

disabling (greying out) tabs on a form

I have a form with numerous tabs on it but when the user chooses a
specific option I want all but one tab to be disabled (greyed out but
still visible). Can anyone tell my how I may do this?

Thanks
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 21 '05 #1
3 2012
"slippy" <ia*@nullvoid.co-dot-uk.no-spam.invalid> schrieb:
I have a form with numerous tabs on it but when the user chooses a
specific option I want all but one tab to be disabled (greyed out but
still visible).


Set the tabcontrol's 'Enabled' property to 'False'. This will prevent the
user from changing the selected tab and any of the controls contained in the
tabpages. Notice that this will not visually "gray out" the tab headers.
To do this, you will have to change the tabcontrol's 'DrawMode' property to
'OwnerDrawFixed' and draw the caption according to the enabled state using
'ControlPaint.DrawStringDisabled'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Can you show me any examples of how this can be done?

Sorry, I'm a newbie to vb.net programming and I'm not too familiar
with the language as of yet....

Thanks

Slip
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 21 '05 #3
http://dotnetrix.co.uk/tabcontrols.html

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"slippy" <ia*@nullvoid.co-dot-uk.no-spam.invalid> wrote in message
news:42********@127.0.0.1...
Can you show me any examples of how this can be done?

Sorry, I'm a newbie to vb.net programming and I'm not too familiar
with the language as of yet....

Thanks

Slip
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 21 '05 #4

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

Similar topics

3
by: Rob Dixon | last post by:
Hi. Am I missing something, or is there no way of greying out irrelevant form fields on the basis of the contents of the rest of the form? Thanks, Rob
4
by: omidmottaghi | last post by:
I need to disable/enable form elements in my form. the code i was developed works fine in FF, but in IE, its behaviour is very strange!! in the form, we have a lot of checkboxes, all of them...
5
by: Lyn | last post by:
Hi, I hope someone can help. I have a main form which mostly fills the Access window. In the bottom half of this form I have a tab control to display various types of data related to the main...
3
by: Mike | last post by:
That is exactly what I am looking for. Just one thing, after I turn the cursor into a wait cursor, is there a way to disable all the controls (e.g buttons, textboxes) so that I can't click on...
2
by: mallow | last post by:
I want to have a checkbox, that when uncheck greys out some form textboxes, and check, makes them edible, (in order to make relevant questions required to be awnsered.) An example of this would...
4
by: sparks | last post by:
I am working on an old database that is to be expanded. It is going from a 1 time data set to 9. So it has more tables and forms and subforms. the problem is once I added 3 more sets of forms I...
5
by: KingKen | last post by:
I have created a form with a few tabs for data entry. The first tab contain fields that i want to disable after data is entered and saved. that is a person comming after to enter data into that form...
1
by: webandwe | last post by:
Hi, My clients has a form which stores data into a MySQL database but instead of having all the fields on one page he wants like a tabs to split the form up and make it seem less. Examples: ...
5
by: Shortstuff12345 | last post by:
I'm trying to use VBA code to disable a field based on the value of another field in a form. The code I have properly updates the enabled property of the field when it changes; however, it changes...
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: 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
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
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...
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
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...

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.