Windows Forms: Internet Download Manager in C# Part 1

How to make an Internet Download Manager like IDM in C#

Step 1Click New Project, then select Visual C# on the left, then Windows and then select Windows Forms Application. Name your project "DownloadManager" and then click OK

download managerStep 2: Design your form as below

Name your main form: frmMain

download manager

Name your setting form: frmSetting

download manager

Name your add url form: frmAddUrl

download manager

Name your download form: frmDownload

download manager

Step 3: Create a dataset to store your donwload data, you can use dataset as a database

download manager

Step 4: Create an App class to create a new instance for your dataset

static class App
{
    static Database db;
    public static Database DB
    {
        get
        {
            if (db == null)
                db = new Database();
            return db;
        }
    }
}

You can use a singleton pattern to create an instance. A singleton pattern ensure a class has only one instance

VIDEO TUTORIALS