A zip file for download is attached for this project.
Preview screenshots:

This is the form1 code:
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.IO;
- using System.Net;
- using System.Threading;
- namespace Splash_Screen_With_Progress_Bar
- {
- public partial class Form1 : Form
- {
- private FileDownload fd;
- public static Splash_Screen splash_s;
- private string Link = "http://www.ims.gov.il/Ims/Pages/RadarImage.aspx?Row=9&TotalImages=10&LangID=1&Location=";
- private string FileName;
- public Form1()
- {
- InitializeComponent();
- splash_s = new Splash_Screen();
- fd = new FileDownload(this);
- FileName = @"c:\temp\test.jpg";
- fd.File_Download(Link, FileName);
- splash_s.Show();
- for (int i = 1; i < 100; i++)
- {
- Thread.Sleep(30);
- Application.DoEvents();
- }
- splash_s.SyncedClose();
- splash_s = null;
- FileDownloadCompleted();
- }
- public void FileDownloadCompleted()
- {
- label1.Text = "File Download Completed";
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- }
- }
The Splash screen form i called it Splash_Screen_With_Progress_Bar
I added to the Splash form in the designer a background image then set the form size to 589,260 and the properties Start Position = center screen , Show in taskbar = false , Form Border Style = none , AutoScale Mod = font
Then I added a progressBar control to the form and set it's property Dock to Bottom.
The progressBar size is: 589,23
Join the conversation! Your thoughts help the community grow.