Click to See Complete Forum and Search --> : how do you disable a button


ANGELE1999
December 18th, 1999, 06:07 PM
I just need to know how to disable a button. Please give me an example.

December 18th, 1999, 09:35 PM
Either through properties window by setting Enabled to False or through code:

Command1.Enabled=false



Vlad

December 19th, 1999, 01:03 PM
Suppose you have a command button on your form call "CommandButton1", write the following code to disable the command button:

CommandButton1.Enabled = False

PanasonicSubz
December 19th, 1999, 10:10 PM
If you want to actually make the control so you cant see it, use command1.visible = false

PanasonicSubz