Disabling Controls on Screen

I’m really new at VBScript, but I have a newbie book that is helping me along. However, I have one question that doesn’t seem to be addressed. Is it possible (using VBScript) to “grey out” check boxes so they cannot be selected, depending on parameters given in other areas of the form? For example, I’m writing a page that helps people create characters for a mud, but not all the attributes are available to certain races or classes of character. I need a way to make sure they don’t select attributes they can’t have because of other properties of the character they have chosen.

The Visual Basic method is to set the Enabled property to False. However, some of the controls may not correctly support this property. You might also try changing the color of the text beside the box. That will visually show that the box is disabled. You can try either to change the text color of the check box, or create a separate label next to the check box and change its color.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS