•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 397,771 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,518 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 3682 | Replies: 3
![]() |
•
•
Join Date: Jan 2005
Location: Hollywood, MD
Posts: 66
Reputation:
Rep Power: 4
Solved Threads: 1
Hello all! I'm a year one programming student who is currently finishing up his first year, and heading into AP! We only really work with VB in our corse, and we're not moving too fast, so I had a question I'd hope was answerable. Is it possable to cause a command button to become invalid, that is, grey it out so that the button cannot be used until a certian value = true?
•
•
Join Date: Jan 2005
Location: Hollywood, MD
Posts: 66
Reputation:
Rep Power: 4
Solved Threads: 1
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 107
I agree with comatose, in the properties window of the command button there is a property name "Enabled" set this to what you want the button on startup, and then when in the form the code you need, as stated above is simply command1.enabled = false, then you will still see the command button but it will be "greyed out" as you put it.
hope this helps.
hope this helps.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Similar Threads
- command button (Visual Basic 4 / 5 / 6)
- How do I use a command button to open a exe file created in VB? (Visual Basic 4 / 5 / 6)
- [req]How to move elements in the list box up and down using command button? (Visual Basic 4 / 5 / 6)
- How to disable a hyperlink or a textbox or a command button? (PHP)
- Send Command button in MSWord code needed (Visual Basic 4 / 5 / 6)
- Problem with VAT+COding for Command button (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VB6 and MS Access 2002
- Next Thread: storing voice files...



Linear Mode