All pastes #631424 Raw Edit

Anonymous

public text v1 · immutable
#631424 ·published 2007-07-23 23:08 UTC
rendered paste body
/*
 * Created by SharpDevelop.
 * User: Administrator
 * Date: 24/07/2007
 * Time: 00:45
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace KakiProgram
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		void Button1Click(object sender, EventArgs e)
		{
			this.WindowState=FormWindowState.Maximized;
			this.BackColor=Color.Black;
			button1.Visible=false;
			label1.Text="";
			label1.Width=this.Width;
			label1.Height=this.Height;
			label1.Left=0;
			label1.Top=0;
			label1.ForeColor=Color.Green;
			label1.AutoSize=true;
			timer1.Enabled=true;
		}
		
		void Timer1Tick(object sender, EventArgs e)
		{
			Random RandomClass = new Random();
			string RandomNumber = "";
			for (int i=0; i<100; i++) {
				RandomNumber = RandomNumber + Convert.ToChar(RandomClass.Next(47, 182));
			}
			label1.Text=RandomNumber + "\r\n" + label1.Text;
		}
	}
}