Mad Libs C# Project

Topics: Noun Pages: 9 (1072 words) Published: August 25, 2013
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
public partial class frmMadLibs : Form
{
string noun;
string noun2;
string noun3;
string verb;
string verb2;
string adjective;
string adjective2;
string pluralNoun;
string pluralNoun2;
string pluralNoun3;
string color;
string color2;
string number;
string number2;
string clothing;
string season;
string bug;
string animals;
string bodyPart;
string job;
string foods;
string foods2;
string name;

public frmMadLibs()
{
InitializeComponent();
}

private void btnStory1_Click(object sender, EventArgs e) {
picMadLib.Visible = false;
picYellow.Visible = true;

btnStory1.Visible = false;
btnStory2.Visible = false;
btnStory3.Visible = false;
btnGoBackStory1.Visible = true;
btnReadStory1.Visible = true;

lblComicBookHero.Visible = true;
lblColorStory1.Visible = true; txtColorStory1.Visible = true; lblNoun1Story1.Visible = true; txtNoun1Story1.Visible = true; lblNumber1Story1.Visible = true; txtNumber1Story1.Visible = true; lblAdjective1Story1.Visible = true; txtAdjective1Story1.Visible = true; lblPluralNoun1Story1.Visible = true; txtPluralNoun1Story1.Visible = true; lblBodyPartStory1.Visible = true; txtBodyPartStory1.Visible = true; lblNoun2Story1.Visible = true; txtNoun2Story1.Visible = true; lblNumber2Story1.Visible = true; txtNumber2Story1.Visible = true; lblPluralNoun2Story1.Visible = true; txtPluralNoun2Story1.Visible = true; lblVerb1Story1.Visible = true; txtVerb1Story1.Visible = true; lblAdjective2Story1.Visible = true; txtAdjective2Story1.Visible = true; lblNoun3Story1.Visible = true; txtNoun3Story1.Visible = true; lblPluralNoun3Story1.Visible = true; txtPluralNoun3Story1.Visible = true; lblJobStory1.Visible = true; txtJobStory1.Visible = true; lblVerb2Story1.Visible = true; txtVerb2Story1.Visible = true;

}
private void btnReadStory1_Click(object sender, EventArgs e) {
color = txtColorStory1.Text;
noun = txtNoun1Story1.Text;
number = txtNumber1Story1.Text;
adjective = txtAdjective1Story1.Text;
pluralNoun = txtPluralNoun1Story1.Text;
bodyPart = txtBodyPartStory1.Text;
noun2 = txtNoun2Story1.Text;
number2 = txtNumber2Story1.Text;
pluralNoun2 = txtPluralNoun2Story1.Text;
verb = txtVerb1Story1.Text;
adjective2 = txtAdjective2Story1.Text;
noun3 = txtNoun3Story1.Text;
pluralNoun3 = txtPluralNoun3Story1.Text;
job = txtJobStory1.Text;
verb2 = txtVerb2Story1.Text;
int a = Convert.ToInt32(txtNumber1Story1.Text);
int b = Convert.ToInt32(txtNumber2Story1.Text);
int c = a + b;

string story1 = "My favorite super hero is a " + color + " " + noun + ". She’s a superhuman creature with " + number + " " + adjective + " " + pluralNoun + "." + " When a bad guy attacks her, her " + bodyPart + " " + "turns into a " + noun2 + " and shoots out " + number2 + " " + pluralNoun2 + ". She is able to make any enemy " + verb + " with her mind control. She rides on a " +...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • c project Essay
  • project Essay
  • project Essay
  • project Essay
  • Course Project Part C Essay
  • 2360 Course C Project Essay
  • Statistic Project Part "C" Essay
  • Project C Essay

Become a StudyMode Member

Sign Up - It's Free