Click here to Skip to main content
15,894,539 members
Articles / Web Development / ASP.NET

Persian Calendar with Tray Icon

Rate me:
Please Sign up or sign in to vote.
3.71/5 (16 votes)
12 Mar 2012CPOL2 min read 71.1K   2.4K   27  
A Persian calendar that shows a tray icon
��namespace mytray

{

    partial class Form_Main

    {

        /// <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.Windows.Forms.ToolStripMenuItem calendarToolStripMenuItem;

            this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);

            this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);

            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();

            this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();

            this.exitToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();

            this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();

            this.timer_Refrash = new System.Windows.Forms.Timer(this.components);

            calendarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();

            this.contextMenuStrip1.SuspendLayout();

            this.SuspendLayout();

            // 

            // calendarToolStripMenuItem

            // 

            calendarToolStripMenuItem.BackColor = System.Drawing.SystemColors.Highlight;

            calendarToolStripMenuItem.Name = "calendarToolStripMenuItem";

            calendarToolStripMenuItem.Size = new System.Drawing.Size(168, 22);

            calendarToolStripMenuItem.Text = "*BHJE";

            calendarToolStripMenuItem.TextImageRelation = System.Windows.Forms.TextImageRelation.Overlay;

            calendarToolStripMenuItem.Click += new System.EventHandler(this.calendarToolStripMenuItem_Click);

            // 

            // notifyIcon1

            // 

            this.notifyIcon1.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;

            this.notifyIcon1.Text = "notifyIcon1";

            this.notifyIcon1.BalloonTipClosed += new System.EventHandler(this.notifyIcon1_BalloonTipClosed);

            this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);

            // 

            // contextMenuStrip1

            // 

            this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {

            calendarToolStripMenuItem,

            this.toolStripMenuItem2,

            this.settingsToolStripMenuItem,

            this.toolStripSeparator2,

            this.exitToolStripMenuItem1,

            this.toolStripMenuItem1});

            this.contextMenuStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;

            this.contextMenuStrip1.Name = "contextMenuStrip1";

            this.contextMenuStrip1.Size = new System.Drawing.Size(127, 120);

            // 

            // toolStripMenuItem2

            // 

            this.toolStripMenuItem2.BackColor = System.Drawing.SystemColors.Highlight;

            this.toolStripMenuItem2.Name = "toolStripMenuItem2";

            this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22);

            this.toolStripMenuItem2.Text = "�'~  �'1G'";

            this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click_1);

            // 

            // settingsToolStripMenuItem

            // 

            this.settingsToolStripMenuItem.BackColor = System.Drawing.SystemColors.Highlight;

            this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";

            this.settingsToolStripMenuItem.Size = new System.Drawing.Size(168, 22);

            this.settingsToolStripMenuItem.Text = "*F8JE'*";

            this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click);

            // 

            // toolStripSeparator2

            // 

            this.toolStripSeparator2.Name = "toolStripSeparator2";

            this.toolStripSeparator2.Size = new System.Drawing.Size(165, 6);

            // 

            // exitToolStripMenuItem1

            // 

            this.exitToolStripMenuItem1.BackColor = System.Drawing.SystemColors.Highlight;

            this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1";

            this.exitToolStripMenuItem1.Size = new System.Drawing.Size(168, 22);

            this.exitToolStripMenuItem1.Text = "/1('1G";

            this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem1_Click);

            // 

            // toolStripMenuItem1

            // 

            this.toolStripMenuItem1.BackColor = System.Drawing.SystemColors.Highlight;

            this.toolStripMenuItem1.Name = "toolStripMenuItem1";

            this.toolStripMenuItem1.Size = new System.Drawing.Size(168, 22);

            this.toolStripMenuItem1.Text = ".1H,";

            this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click);

            // 

            // timer_Refrash

            // 

            this.timer_Refrash.Interval = 300;

            this.timer_Refrash.Tick += new System.EventHandler(this.timer1_Tick);

            // 

            // Form_Main

            // 

            this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);

            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

            this.BackColor = System.Drawing.SystemColors.HotTrack;

            this.ClientSize = new System.Drawing.Size(288, 228);

            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));

            this.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);

            this.Name = "Form_Main";

            this.Opacity = 0;

            this.ShowInTaskbar = false;

            this.Text = "Form1";

            this.WindowState = System.Windows.Forms.FormWindowState.Minimized;

            this.Load += new System.EventHandler(this.Form_Main_Load);

            this.VisibleChanged += new System.EventHandler(this.Form1_VisibleChanged);

            this.contextMenuStrip1.ResumeLayout(false);

            this.ResumeLayout(false);



        }



        #endregion



        private System.Windows.Forms.NotifyIcon notifyIcon1;

        private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;

        private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;

        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;

        private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem1;

        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;

        private System.Windows.Forms.Timer timer_Refrash;

        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;

    }

}



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
Engineer neyshabur azad univeristy
Iran (Islamic Republic of) Iran (Islamic Republic of)
I had worked as programmer,project manager,web developer for more than 3 years, and have worked on programming personaly for more than 10 years.
I have worked in university as a teacher for 8 years.
my favorite langueges are : VC++,C#,ASP.NET,PHP

Comments and Discussions