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
Create Visual basic code for a joke and its punchlineCreate a Visual Basic program that has a joke and a punchline
Page 1 of 1
5 Replies - 2369 Views - Last Post: 09 September 2010 - 10:57 AM
#1
Create Visual basic code for a joke and its punchline
Posted 08 September 2010 - 11:20 AM
Replies To: Create Visual basic code for a joke and its punchline
#2
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
Try follow some of the tutorial online
This post has been edited by Somyagupta: 08 September 2010 - 11:29 AM
#3
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.
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.
#4
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.
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.
#5
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).
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).
#6
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
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
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|