Jump to content

Create Visual basic code for a joke and its punchline

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
tonyfingures

tonyfingures

    Newbie

  • Members
  • Pip
  • 5 posts
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

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,086 posts
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.

#3
tonyfingures

tonyfingures

    Newbie

  • Members
  • Pip
  • 5 posts
This is clearly the best most simple explanation i have ever read. Thanks OXANO. i'll give it a try