943,699 Members | Top Members by Rank

Ad:
Feb 9th, 2009
0

[Question] Disabling a Button

Expand Post »
Hello

Ok i need to do the following, but if you can help with any please post!

I need to: Disable a button after its clicked, enable a button after the button being disabled is clicked, make the button being disabled turn a text area from visible false to true.

Thanks if you can help!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xR3born is offline Offline
1 posts
since Feb 2009
Feb 9th, 2009
0

Re: [Question] Disabling a Button

What code do you have so far? Post your effort, and we may help.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 10th, 2009
0

Re: [Question] Disabling a Button

juan dela cruz indeed.
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Feb 10th, 2009
0

Re: [Question] Disabling a Button

ok so say the first button is button1, the next is button2 and the text box is just that.

to start with in the form load event you need to enter
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. button1.enabled = true
  2. button2. visible = false
  3. text box.visible = false
  4.  
  5. for button1's click event enter
  6.  
  7. button1.enabled = false
  8. button2.visible = true
and in the button2's click event enter

text box.visible = true



Hope this helps you!!
Last edited by Ancient Dragon; Feb 10th, 2009 at 8:34 pm. Reason: add code tags
Reputation Points: 10
Solved Threads: 0
Newbie Poster
parkes92 is offline Offline
9 posts
since Feb 2009
Feb 10th, 2009
0

Re: [Question] Disabling a Button

How about not just giving him the code, but making him show effort for it parkes82. Did you read any of the posts leading up to yours? Furthermore, how about you use code tags.
Last edited by Comatose; Feb 10th, 2009 at 2:54 pm.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 10th, 2009
0

Re: [Question] Disabling a Button

do u not quite understand forums where you help each other out not test them, he asked for help so i gave it ok i made a mistake did you notice i only just joined a few days ago so give me a chance
Last edited by parkes92; Feb 10th, 2009 at 3:02 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
parkes92 is offline Offline
9 posts
since Feb 2009
Feb 10th, 2009
0

Re: [Question] Disabling a Button

The mistake, was that he showed no effort at all toward the assignment. He very well could be doing this as a homework assignment (and probably is, based on the nature of what the program seems to do). You basically did his homework for him, and what did he learn? He learned that he didn't have to write code, or learn the code, because someone on a forum will post it for him. You'll notice that in the announcements from Dani (developer of the site) that we only give homework to those who SHOW EFFORT. No code effort was shown here.

As far as code tags go, when you post code you can do so like this (but don't use any of the spaces... I did that to make it show up on the screen instead of being read by the system as code tags):

[ code=vb ]
your code goes here
[ /code ]
Last edited by Comatose; Feb 10th, 2009 at 3:08 pm.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Feb 10th, 2009
0

Re: [Question] Disabling a Button

u cant see it was homework at all
it may well be but i use this code for more than school work
u may notice this isnt your site so either help out and DISCUSS not criticise other users please or dont bother
Reputation Points: 10
Solved Threads: 0
Newbie Poster
parkes92 is offline Offline
9 posts
since Feb 2009
Feb 10th, 2009
0

Re: [Question] Disabling a Button

It may not be my site, but at least I follow by the rules that the owner has asked the people to follow by. How about you figure it out, and take the criticism as it was meant to be taken, and when you see other people (who could have clearly answered this question) choosing not to because it very likely is homework, do the same. Otherwise you don't bother.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How to open contacts in with vb
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: vba code needed





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC