|
-
Sep 6th, 2011, 09:20 PM
#1
Thread Starter
Lively Member
How do I Click my button once then its disabled?
The tittle says it all please help!!!
-
Sep 6th, 2011, 09:28 PM
#2
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.
-
Sep 6th, 2011, 09:34 PM
#3
Thread Starter
Lively Member
Re: How do I Click my button once then its disabled?
-
Sep 6th, 2011, 09:41 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|