[Question] Disabling a Button

Reply

Join Date: Feb 2009
Posts: 1
Reputation: xR3born is an unknown quantity at this point 
Solved Threads: 0
xR3born xR3born is offline Offline
Newbie Poster

[Question] Disabling a Button

 
0
  #1
Feb 9th, 2009
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!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: [Question] Disabling a Button

 
0
  #2
Feb 9th, 2009
What code do you have so far? Post your effort, and we may help.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: [Question] Disabling a Button

 
0
  #3
Feb 10th, 2009
juan dela cruz indeed.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: parkes92 is an unknown quantity at this point 
Solved Threads: 0
parkes92 parkes92 is offline Offline
Newbie Poster

Re: [Question] Disabling a Button

 
0
  #4
Feb 10th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: [Question] Disabling a Button

 
0
  #5
Feb 10th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: parkes92 is an unknown quantity at this point 
Solved Threads: 0
parkes92 parkes92 is offline Offline
Newbie Poster

Re: [Question] Disabling a Button

 
0
  #6
Feb 10th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: [Question] Disabling a Button

 
0
  #7
Feb 10th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 9
Reputation: parkes92 is an unknown quantity at this point 
Solved Threads: 0
parkes92 parkes92 is offline Offline
Newbie Poster

Re: [Question] Disabling a Button

 
0
  #8
Feb 10th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: [Question] Disabling a Button

 
0
  #9
Feb 10th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC