So I made a software that can download strings from url. Here is my code:
private void button1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked)
{
var accounts = new WebClient().DownloadString("https://pastebin.pl/view/raw/sample").Split('\n');
textBox1.Text = accounts[new Random().Next(0, accounts.Length)];
}
How can I make custom progress bar made by text, such that only text will show for progressing the download? example:
When the download is 10% I want to put on text progressbar (Status: requesting database)
when it comes up to 50% I want to put on text progressbar (Status: getting information)
when it comes 100% (Status: completed)