Results 1 to 4 of 4

Thread: How do I Click my button once then its disabled?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2011
    Posts
    66

    How do I Click my button once then its disabled?

    The tittle says it all please help!!!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How do I Click my button once then its disabled?

    I think that the title does say it all, including the answer. How do you usually do something when a Button is clicked? You handle the Click event, which I'm guessing that you're already doing. How do you usually disable a control? You set its Enabled property to False. So, you need to handle the Click event of the Button and set that Button's Enabled property to False.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2011
    Posts
    66

    Re: How do I Click my button once then its disabled?

    I don't get it sir...

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How do I Click my button once then its disabled?

    Handling the Click event of a Button is one of the most elementary things you can do when learning Windows Forms programming. If you don't know how to do that then you must have no concept of the absolute basics, so I suggest that you work your way through an appropriate tutorial to get that basic knowledge. Once you've done that, you will know what to do when someone says "handle this event", "set this property" or "call this method". You may not always know what event, property or method to use but, when we tell you which one, you should be able to go ahead and use it.

    Here's the tutorial I usually recommend:

    http://www.homeandlearn.co.uk/net/vbnet.html

    Once you've worked your way through that, you'll be able to follow the instructions in post #2.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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