Click here to Skip to main content
12,250,675 members (36,646 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

53.2K views
736 downloads
54 bookmarked
Posted

Some Unfriendly, Annoying Balls on the Desktop

, 3 Oct 2007
Some unfriendly, annoying balls on the desktop bouncing around and trying to catch the cursor - a mix of GDI+, transparent forms and bit of AI
namespace Replicator
{
	partial class Robot
	{
		/// <summary>
		/// Erforderliche Designervariable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Verwendete Ressourcen bereinigen.
		/// </summary>
		/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Vom Windows Form-Designer generierter Code

		/// <summary>
		/// Erforderliche Methode für die Designerunterstützung.
		/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
		/// </summary>
		private void InitializeComponent()
		{
			this.SuspendLayout();
			// 
			// Robot
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.BackColor = System.Drawing.Color.Magenta;
			this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
			this.ClientSize = new System.Drawing.Size(40, 40);
			this.ControlBox = false;
			this.ForeColor = System.Drawing.Color.Magenta;
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.MaximizeBox = false;
			this.MaximumSize = new System.Drawing.Size(40, 40);
			this.MinimizeBox = false;
			this.MinimumSize = new System.Drawing.Size(40, 40);
			this.Name = "Robot";
			this.ShowIcon = false;
			this.ShowInTaskbar = false;
			this.Text = "Robot";
			this.TopMost = true;
			this.TransparencyKey = System.Drawing.Color.Magenta;
			this.Paint += new System.Windows.Forms.PaintEventHandler(this.Robot_Paint);
			this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Robot_MouseClick);
			this.Shown += new System.EventHandler(this.Robot_Shown);
			this.ResumeLayout(false);

		}

		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

]Metty[
Germany Germany
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160426.1 | Last Updated 3 Oct 2007
Article Copyright 2007 by ]Metty[
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid