Click here to Skip to main content
15,892,737 members
Articles / Programming Languages / C#

Website Investigator

Rate me:
Please Sign up or sign in to vote.
4.36/5 (27 votes)
5 Aug 2009CPOL5 min read 47.6K   1.1K   50  
Gets website registration information
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QIP_Country_Match
{
    public partial class frmUpdateDatabase : Form
    {
        public frmUpdateDatabase()
        {
            InitializeComponent();
        }

        private void frmUpdateDatabase_Load(object sender, EventArgs e)
        {
            this.Show();
            this.BringToFront();
            this.Activate();

            backgroundWorker1.RunWorkerAsync();

        }


        private void frmUpdateDatabase_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            UpdateDatabase _UpdateDatabase = new UpdateDatabase();
            _UpdateDatabase.Start();
        }

        private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            this.BackColor = Color.White;
            label1.ForeColor = Color.DarkGreen;

            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
            pictureBox1.Image = QIP_Country_Match.Properties.Resources.ico_check;
            label1.Text = "Update complete!\nExitting...";
            tmrExit.Start();
        }

        private void tmrExit_Tick(object sender, EventArgs e)
        {
            kill_tmrExit();
        }
        private void kill_tmrExit()
        {
            tmrExit.Stop();
            Application.Exit();
        }
    }
}

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
Retired QSoft
Yemen Yemen
Biography?! I'm not dead yet!
www.QSoftOnline.com

Comments and Discussions