Annoying Application (Lang: C#)

by Riott

in Completed Works

Annoying Application (Lang: C#)

namespace Annoying
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;

/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (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.SuspendLayout();
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(174, 0);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.load);
this.ResumeLayout(false);

}

#endregion
}
}

________________________________________________________________________

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 Annoying
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void load(object sender, EventArgs e)
{
for (int i = 0; i < 9000; i++)
{
Application.SetSuspendState(PowerState.Hibernate, true, true);
}
}
}
}

Description

Jun 12th 2009
Tags:
annoying c c net riott tasp
Views:
19
Comments:
1
Score:
0
Favorites:
0
The top half is the design is the Designer.resx

The bottom half is the C# code file.

You should totally run this! It's awesome!


This project's code is entirely C#.

DISCLAIMER: This program is open-source. I (Riott) have no rights to it. Furthermore, I am not responsible for any problems that may result due to execution of or with a tampered version of this code.

Comments

JonathanLittmann Says:

Goddamnit Nyo.

"for (int i = 0; i < 9000; i++)
{
Application.SetSuspendState(PowerState.Hibernate, true, true);
}"

It Hibernates over nine thousand times.