just need help at the begining because i don't really have a clue on how about to do this. I am trying to make a Visual Basic program that shows the punchline after the reader presses the punchline button. The joke is "{How many programmers does it take to change a light bulb) the punchline button is used to see the punchline and is "None. Thats a hardware problem"
Any help would be highly appreciated
Create Visual basic code for a joke and its punchline
Started by tonyfingures, Sep 09 2010 11:59 AM
2 replies to this topic
#1
Posted 09 September 2010 - 11:59 AM
|
|
|
#2
Posted 09 September 2010 - 01:45 PM
1) create a form.
2) drag a label (lblJoke), button(btnShow) and another label(lblPunchline) onto it. (from the toolbox)
3) put the joke in lblJoke, and the punchline in lblPunchline (change the text property), maybe change the button's text too.
4) set the visible property of lblPunchline to false (so it's invisible)
5) double click on the button to create the code-behind onclick method.
6) in tihs "new" method, set lblPunchline visible.
2) drag a label (lblJoke), button(btnShow) and another label(lblPunchline) onto it. (from the toolbox)
3) put the joke in lblJoke, and the punchline in lblPunchline (change the text property), maybe change the button's text too.
4) set the visible property of lblPunchline to false (so it's invisible)
5) double click on the button to create the code-behind onclick method.
6) in tihs "new" method, set lblPunchline visible.
#3
Posted 10 September 2010 - 11:39 AM
This is clearly the best most simple explanation i have ever read. Thanks OXANO. i'll give it a try


Sign In
Create Account

Back to top









