Create Visual basic code for a joke and its punchline

Create a Visual Basic program that has a joke and a punchline

Page 1 of 1

5 Replies - 4260 Views - Last Post: 09 September 2010 - 10:57 AM Rate Topic: -----

#1 tonyfingures  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 01-September 10

Create Visual basic code for a joke and its punchline

Posted 08 September 2010 - 11:20 AM

I 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
Is This A Good Question/Topic? 0
  • +

Replies To: Create Visual basic code for a joke and its punchline

#2 Somyagupta  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 85
  • Joined: 05-August 10

Re: Create Visual basic code for a joke and its punchline

Posted 08 September 2010 - 11:29 AM

Well If you donot know basic try some tutorials online. Creating this is very east as you only need a Single command button and a textbox. When the command button is pressed to set some text in textbox.

Try follow some of the tutorial online

This post has been edited by Somyagupta: 08 September 2010 - 11:29 AM

Was This Post Helpful? 0
  • +
  • -

#3 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 303
  • View blog
  • Posts: 1,797
  • Joined: 26-March 09

Re: Create Visual basic code for a joke and its punchline

Posted 08 September 2010 - 12:39 PM

as Somyagupta has said, this is really quite straight forward.

If you give it a go yourself, then come back with what you have created if you still have problems, then you're more likely to get some help because at least you will have had a go.
Was This Post Helpful? 0
  • +
  • -

#4 tonyfingures  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 01-September 10

Re: Create Visual basic code for a joke and its punchline

Posted 08 September 2010 - 01:16 PM

Thanks guys for your comments.
Basically, I can't get how i'm supposed to begin this program. I am used to programs where i can calculate something but thats because it deals with numbers. This one just doesn't seem to work for me because its only words.
On paper, i know i'm supposed to have

Form (Default)
Label (Default)
TextBox ?????????
Button btnsetup
Button btnpunchline

As a beginner that is all i have done on paper.
Was This Post Helpful? 0
  • +
  • -

#5 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 303
  • View blog
  • Posts: 1,797
  • Joined: 26-March 09

Re: Create Visual basic code for a joke and its punchline

Posted 09 September 2010 - 12:09 AM

OK, so you have a user interface design.

You've already stated what you want the program to do in your first post, so have a try at documenting or coding the events that should happen throughout your program. (i.e.: what should happen when the program starts, what happens when you press each button). That way you will complete your design and in the process, you'll know what you need to code.

Nobody is trying to be harsh with you, but having a go at it will help you immensely in getting some assistance, as at least you have shown willing. I'm afraid that nobody will just write something for you (it's the rules here).
Was This Post Helpful? 0
  • +
  • -

#6 parbipin  Icon User is offline

  • D.I.C Head

Reputation: 29
  • View blog
  • Posts: 95
  • Joined: 23-August 10

Re: Create Visual basic code for a joke and its punchline

Posted 09 September 2010 - 10:57 AM

I wont write code for you at this time, unless you have something of your own; but I think I can tell you how to begin what do you need and stuff...

Ingredients for this recipe are:

Item Qty
Form 1
Label 2 (one for Question, other for Punch Line)
Button 1 (To Show the Punch Line)

Structure is When button is clicked then you make the second Label visible. The Event is Click and activity being performed is making Lable Visible. I think this should be enough for you to begin. Look for Hello World in VB on Google..

Have Fun
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1