Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Size = new Size(420, 384);
            this.Focus();

            var proc1 = new Thread(() =>
            {
                string Ver = CheckUpdate.MsgUpdateAvailable();
                if (Ver != null)
                {
                    notifyIcon1.ShowBalloonTip(3000, "Update available " + Ver,
                                               "Click on this notification to see more", ToolTipIcon.Info);
                }
            })
            {
                IsBackground = true
            };

            proc1.Start();
            panelDownloading.Location       = new Point(0, 182); //195; 57
            panelUpdateDownloading.Location = new Point(0, 182);
            this.Text = this.Text + " - " + Application.ProductVersion;
        }