CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 1999
    Posts
    74

    how do you disable a button

    I just need to know how to disable a button. Please give me an example.


  2. #2
    Guest

    Re: how do you disable a button

    Either through properties window by setting Enabled to False or through code:

    Command1.Enabled=false



    Vlad


  3. #3
    Guest

    Re: how do you disable a button

    Suppose you have a command button on your form call "CommandButton1", write the following code to disable the command button:

    CommandButton1.Enabled = False


  4. #4
    Join Date
    Nov 1999
    Location
    California, USA
    Posts
    40

    Re: how do you disable a button

    If you want to actually make the control so you cant see it, use command1.visible = false

    PanasonicSubz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured