<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FNotifyIcon</id>
		<title>Csharp/CSharp Tutorial/GUI Windows Forms/NotifyIcon - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FNotifyIcon"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/NotifyIcon&amp;action=history"/>
		<updated>2026-04-29T23:54:04Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/NotifyIcon&amp;diff=5427&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/NotifyIcon&amp;diff=5427&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/NotifyIcon&amp;diff=5428&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/NotifyIcon&amp;diff=5428&amp;oldid=prev"/>
				<updated>2010-05-26T12:15:25Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==NotifyIcon Sample==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;        &lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
namespace NotifyIconExample&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for NotifyIconForm.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class NotifyIconForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.NotifyIcon notifyIcon1;&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
    private System.ruponentModel.IContainer components;&lt;br /&gt;
    public NotifyIconForm()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
      this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);&lt;br /&gt;
    }&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if (components != null) &lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.ruponents = new System.ruponentModel.Container();&lt;br /&gt;
      this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.ruponents);&lt;br /&gt;
      this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // notifyIcon1&lt;br /&gt;
      // &lt;br /&gt;
      this.notifyIcon1.Icon = new Icon(&amp;quot;yourIcon.ico&amp;quot;);&lt;br /&gt;
      this.notifyIcon1.Text = &amp;quot;Hello from NotifyIconExample&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // button1&lt;br /&gt;
      // &lt;br /&gt;
      this.button1.Location = new System.Drawing.Point(109, 122);&lt;br /&gt;
      this.button1.Name = &amp;quot;button1&amp;quot;;&lt;br /&gt;
      this.button1.TabIndex = 0;&lt;br /&gt;
      this.button1.Text = &amp;quot;Hide in tray&amp;quot;;&lt;br /&gt;
      this.button1.Click += new System.EventHandler(this.button1_Click);&lt;br /&gt;
      // &lt;br /&gt;
      // NotifyIconForm&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(292, 266);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                      this.button1});&lt;br /&gt;
      this.Name = &amp;quot;NotifyIconForm&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;NotifyIconForm&amp;quot;;&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The main entry point for the application.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new NotifyIconForm());&lt;br /&gt;
    }&lt;br /&gt;
    private void button1_Click(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      notifyIcon1.Visible = true;&lt;br /&gt;
      this.Visible = false;&lt;br /&gt;
    }&lt;br /&gt;
    private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      notifyIcon1.Visible = false;&lt;br /&gt;
      this.Visible = true;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use Timer to update NotifyIcon==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class NotifyIconTimerUpdate : Form&lt;br /&gt;
{&lt;br /&gt;
    private Icon[] images = new Icon[8];&lt;br /&gt;
    int index = 0;&lt;br /&gt;
    public NotifyIconTimerUpdate()&lt;br /&gt;
    {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        images[0] = new Icon(&amp;quot;1.ico&amp;quot;);&lt;br /&gt;
        images[1] = new Icon(&amp;quot;2.ico&amp;quot;);&lt;br /&gt;
        images[2] = new Icon(&amp;quot;3.ico&amp;quot;);&lt;br /&gt;
        images[3] = new Icon(&amp;quot;4.ico&amp;quot;);&lt;br /&gt;
        images[4] = new Icon(&amp;quot;5.ico&amp;quot;);&lt;br /&gt;
        images[5] = new Icon(&amp;quot;1.ico&amp;quot;);&lt;br /&gt;
        images[6] = new Icon(&amp;quot;2.ico&amp;quot;);&lt;br /&gt;
        images[7] = new Icon(&amp;quot;3.ico&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        notifyIcon.Icon = images[index];&lt;br /&gt;
        index++;&lt;br /&gt;
        if (index &amp;gt; 7) &lt;br /&gt;
           index = 0;&lt;br /&gt;
    }&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    public static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        Application.Run(new NotifyIconTimerUpdate());&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.NotifyIcon notifyIcon;&lt;br /&gt;
    private System.Timers.Timer timer;&lt;br /&gt;
    &lt;br /&gt;
    private System.ruponentModel.IContainer components = null;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
        this.ruponents = new System.ruponentModel.Container();&lt;br /&gt;
        this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.ruponents);&lt;br /&gt;
        this.timer = new System.Timers.Timer();&lt;br /&gt;
        ((System.ruponentModel.ISupportInitialize)(this.timer)).BeginInit();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        // &lt;br /&gt;
        // notifyIcon&lt;br /&gt;
        // &lt;br /&gt;
        this.notifyIcon.Text = &amp;quot;notifyIcon1&amp;quot;;&lt;br /&gt;
        this.notifyIcon.Visible = true;&lt;br /&gt;
        // &lt;br /&gt;
        // timer&lt;br /&gt;
        // &lt;br /&gt;
        this.timer.Enabled = true;&lt;br /&gt;
        this.timer.Interval = 1000;&lt;br /&gt;
        this.timer.SynchronizingObject = this;&lt;br /&gt;
        this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed);&lt;br /&gt;
        // &lt;br /&gt;
        // NotifyIconTimerUpdate&lt;br /&gt;
        // &lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(340, 174);&lt;br /&gt;
        ((System.ruponentModel.ISupportInitialize)(this.timer)).EndInit();&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use Timer to update User interface: NotifyIcon==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class NotifyIconTimerUpdate : Form&lt;br /&gt;
{&lt;br /&gt;
    private Icon[] images = new Icon[8];&lt;br /&gt;
    int index = 0;&lt;br /&gt;
    public NotifyIconTimerUpdate()&lt;br /&gt;
    {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        images[0] = new Icon(&amp;quot;1.ico&amp;quot;);&lt;br /&gt;
        images[1] = new Icon(&amp;quot;2.ico&amp;quot;);&lt;br /&gt;
        images[2] = new Icon(&amp;quot;3.ico&amp;quot;);&lt;br /&gt;
        images[3] = new Icon(&amp;quot;4.ico&amp;quot;);&lt;br /&gt;
        images[4] = new Icon(&amp;quot;5.ico&amp;quot;);&lt;br /&gt;
        images[5] = new Icon(&amp;quot;1.ico&amp;quot;);&lt;br /&gt;
        images[6] = new Icon(&amp;quot;2.ico&amp;quot;);&lt;br /&gt;
        images[7] = new Icon(&amp;quot;3.ico&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        notifyIcon.Icon = images[index];&lt;br /&gt;
        index++;&lt;br /&gt;
        if (index &amp;gt; 7) &lt;br /&gt;
           index = 0;&lt;br /&gt;
    }&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    public static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        Application.Run(new NotifyIconTimerUpdate());&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.NotifyIcon notifyIcon;&lt;br /&gt;
    private System.Timers.Timer timer;&lt;br /&gt;
    &lt;br /&gt;
    private System.ruponentModel.IContainer components = null;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
        this.ruponents = new System.ruponentModel.Container();&lt;br /&gt;
        this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.ruponents);&lt;br /&gt;
        this.timer = new System.Timers.Timer();&lt;br /&gt;
        ((System.ruponentModel.ISupportInitialize)(this.timer)).BeginInit();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        // &lt;br /&gt;
        // notifyIcon&lt;br /&gt;
        // &lt;br /&gt;
        this.notifyIcon.Text = &amp;quot;notifyIcon1&amp;quot;;&lt;br /&gt;
        this.notifyIcon.Visible = true;&lt;br /&gt;
        // &lt;br /&gt;
        // timer&lt;br /&gt;
        // &lt;br /&gt;
        this.timer.Enabled = true;&lt;br /&gt;
        this.timer.Interval = 1000;&lt;br /&gt;
        this.timer.SynchronizingObject = this;&lt;br /&gt;
        this.timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed);&lt;br /&gt;
        // &lt;br /&gt;
        // NotifyIconTimerUpdate&lt;br /&gt;
        // &lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(340, 174);&lt;br /&gt;
        ((System.ruponentModel.ISupportInitialize)(this.timer)).EndInit();&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>