Click here to Skip to main content
15,886,689 members
Articles / Programming Languages / C#

TrafficLights

Rate me:
Please Sign up or sign in to vote.
4.80/5 (34 votes)
3 Apr 2012CPOL1 min read 69.9K   4.2K   78  
Blinks keyboard LEDs to display network traffic.
namespace TrafficLights
{
   partial class TrafficLights
   {
      /// <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.components = new System.ComponentModel.Container();
         System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TrafficLights));
         this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
         this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
         this.configToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.label1 = new System.Windows.Forms.Label();
         this.label2 = new System.Windows.Forms.Label();
         this.comboBoxSendLED = new System.Windows.Forms.ComboBox();
         this.comboBoxReceiveLED = new System.Windows.Forms.ComboBox();
         this.buttonHide = new System.Windows.Forms.Button();
         this.comboBoxAdapter = new System.Windows.Forms.ComboBox();
         this.label3 = new System.Windows.Forms.Label();
         this.contextMenuStrip1.SuspendLayout();
         this.SuspendLayout();
         // 
         // notifyIcon1
         // 
         this.notifyIcon1.BalloonTipText = "Hey, I am here!!!";
         this.notifyIcon1.BalloonTipTitle = "TrafficLighs";
         this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
         this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
         this.notifyIcon1.Text = "TrafficLights";
         this.notifyIcon1.Visible = true;
         // 
         // contextMenuStrip1
         // 
         this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.configToolStripMenuItem,
            this.exitToolStripMenuItem});
         this.contextMenuStrip1.Name = "contextMenuStrip1";
         this.contextMenuStrip1.Size = new System.Drawing.Size(106, 48);
         // 
         // configToolStripMenuItem
         // 
         this.configToolStripMenuItem.Name = "configToolStripMenuItem";
         this.configToolStripMenuItem.Size = new System.Drawing.Size(105, 22);
         this.configToolStripMenuItem.Text = "Config";
         this.configToolStripMenuItem.Click += new System.EventHandler(this.configToolStripMenuItem_Click);
         // 
         // exitToolStripMenuItem
         // 
         this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
         this.exitToolStripMenuItem.Size = new System.Drawing.Size(105, 22);
         this.exitToolStripMenuItem.Text = "Exit";
         this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
         // 
         // label1
         // 
         this.label1.AutoSize = true;
         this.label1.Location = new System.Drawing.Point(12, 9);
         this.label1.Name = "label1";
         this.label1.Size = new System.Drawing.Size(56, 13);
         this.label1.TabIndex = 1;
         this.label1.Text = "Send LED";
         // 
         // label2
         // 
         this.label2.AutoSize = true;
         this.label2.Location = new System.Drawing.Point(12, 32);
         this.label2.Name = "label2";
         this.label2.Size = new System.Drawing.Size(71, 13);
         this.label2.TabIndex = 2;
         this.label2.Text = "Receive LED";
         // 
         // comboBoxSendLED
         // 
         this.comboBoxSendLED.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
         this.comboBoxSendLED.FormattingEnabled = true;
         this.comboBoxSendLED.Location = new System.Drawing.Point(96, 6);
         this.comboBoxSendLED.Name = "comboBoxSendLED";
         this.comboBoxSendLED.Size = new System.Drawing.Size(121, 21);
         this.comboBoxSendLED.TabIndex = 3;
         this.comboBoxSendLED.SelectedIndexChanged += new System.EventHandler(this.comboBoxSendLED_SelectedIndexChanged);
         // 
         // comboBoxReceiveLED
         // 
         this.comboBoxReceiveLED.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
         this.comboBoxReceiveLED.FormattingEnabled = true;
         this.comboBoxReceiveLED.Location = new System.Drawing.Point(96, 33);
         this.comboBoxReceiveLED.Name = "comboBoxReceiveLED";
         this.comboBoxReceiveLED.Size = new System.Drawing.Size(121, 21);
         this.comboBoxReceiveLED.TabIndex = 4;
         this.comboBoxReceiveLED.SelectedIndexChanged += new System.EventHandler(this.comboBoxReceiveLED_SelectedIndexChanged);
         // 
         // buttonHide
         // 
         this.buttonHide.Location = new System.Drawing.Point(12, 87);
         this.buttonHide.Name = "buttonHide";
         this.buttonHide.Size = new System.Drawing.Size(385, 23);
         this.buttonHide.TabIndex = 5;
         this.buttonHide.Text = "Hide";
         this.buttonHide.UseVisualStyleBackColor = true;
         this.buttonHide.Click += new System.EventHandler(this.buttonHide_Click);
         // 
         // comboBoxAdapter
         // 
         this.comboBoxAdapter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
         this.comboBoxAdapter.FormattingEnabled = true;
         this.comboBoxAdapter.Location = new System.Drawing.Point(96, 60);
         this.comboBoxAdapter.Name = "comboBoxAdapter";
         this.comboBoxAdapter.Size = new System.Drawing.Size(301, 21);
         this.comboBoxAdapter.TabIndex = 7;
         this.comboBoxAdapter.SelectedIndexChanged += new System.EventHandler(this.comboBoxAdapter_SelectedIndexChanged);
         // 
         // label3
         // 
         this.label3.AutoSize = true;
         this.label3.Location = new System.Drawing.Point(12, 59);
         this.label3.Name = "label3";
         this.label3.Size = new System.Drawing.Size(44, 13);
         this.label3.TabIndex = 6;
         this.label3.Text = "Adapter";
         // 
         // TrafficLights
         // 
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.ClientSize = new System.Drawing.Size(409, 119);
         this.ControlBox = false;
         this.Controls.Add(this.comboBoxAdapter);
         this.Controls.Add(this.label3);
         this.Controls.Add(this.comboBoxReceiveLED);
         this.Controls.Add(this.buttonHide);
         this.Controls.Add(this.comboBoxSendLED);
         this.Controls.Add(this.label2);
         this.Controls.Add(this.label1);
         this.Name = "TrafficLights";
         this.ShowInTaskbar = false;
         this.Text = "Traffic Lights";
         this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.TrafficLights_FormClosed);
         this.Load += new System.EventHandler(this.TrafficLights_Load);
         this.contextMenuStrip1.ResumeLayout(false);
         this.ResumeLayout(false);
         this.PerformLayout();

      }

      #endregion

      private System.Windows.Forms.NotifyIcon notifyIcon1;
      private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
      private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
      private System.Windows.Forms.Label label1;
      private System.Windows.Forms.Label label2;
      private System.Windows.Forms.ComboBox comboBoxSendLED;
      private System.Windows.Forms.ComboBox comboBoxReceiveLED;
      private System.Windows.Forms.Button buttonHide;
      private System.Windows.Forms.ToolStripMenuItem configToolStripMenuItem;
      private System.Windows.Forms.ComboBox comboBoxAdapter;
      private System.Windows.Forms.Label label3;
   }
}

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions