| | |
[Question] Disabling a Button
![]() |
juan dela cruz indeed.
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
•
•
Join Date: Feb 2009
Posts: 9
Reputation:
Solved Threads: 0
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
and in the button2's click event enter
text box.visible = true
Hope this helps you!!
to start with in the form load event you need to enter
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
button1.enabled = true button2. visible = false text box.visible = false for button1's click event enter button1.enabled = false button2.visible = true
text box.visible = true
Hope this helps you!!
Last edited by Ancient Dragon; Feb 10th, 2009 at 8:34 pm. Reason: add code tags
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 ]
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.
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.
![]() |
Similar Threads
- A simple question : How to enable/disable a button at runtime (C#)
- Media disconnected TCP/IP Error Windows XP (Windows NT / 2000 / XP)
- Read me before posting a request for assistance (Viruses, Spyware and other Nasties)
- Dynamically Enabling and Disabling a Component (Java)
- Re: Basic Sorted Neighborhood in VB (VB.NET)
- Dead machine.. need help with disabling hardware (Troubleshooting Dead Machines)
- network question (Networking Hardware Configuration)
- how do i disallow the user from opening the same tab page (C#)
- Still looking for help: VX2 or something like it... (Viruses, Spyware and other Nasties)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to open contacts in with vb
- Next Thread: How to play(embed) pps file within VB form..?
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






