Dynaverse.net
Off Topic => Engineering => Topic started by: toasty0 on June 07, 2005, 05:45:52 pm
-
Here is the code:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace Steven
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label lblStory;
private System.Windows.Forms.Button btnStory;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.lblStory = new System.Windows.Forms.Label();
this.btnStory = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// lblStory
//
this.lblStory.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(192)));
this.lblStory.Location = new System.Drawing.Point(0, 0);
this.lblStory.Name = "lblStory";
this.lblStory.Size = new System.Drawing.Size(376, 312);
this.lblStory.TabIndex = 0;
this.lblStory.Visible = false;
//
// btnStory
//
this.btnStory.BackColor = System.Drawing.Color.LightBlue;
this.btnStory.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.btnStory.Location = new System.Drawing.Point(376, 0);
this.btnStory.Name = "btnStory";
this.btnStory.Size = new System.Drawing.Size(128, 23);
this.btnStory.TabIndex = 1;
this.btnStory.Text = "Tell Me A Story";
this.btnStory.Click += new System.EventHandler(this.btnStory_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(504, 314);
this.Controls.Add(this.btnStory);
this.Controls.Add(this.lblStory);
this.Name = "Form1";
this.Text = "Steven\'s Story";
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void btnStory_Click(object sender, System.EventArgs e)
{
//Make lblStory visible
lblStory.Visible=true;
btnStory.Visible=false;
lblStory.Text="Way down south where the grass grows green " +"\n"+
"Steve jumped on the old sewing machine." +"\n"+
"That sewing was going so fast"+ "\n"+
"It sewed ninety stitches up old Steve's ass";
}
}
}
And this is what you get for the final output (compiled program) or aka the executable. http://www.toasty0.com/Marlow/Steven.exe
Jerry
-
LOL< ok Bro, them's fighting words. ;D
Stephen
-
hahahaha.