© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3mo ago•
23 replies
DidierThePenguin 🇫🇷

✅ Fake loading bar

I'm trying to make a fake loading bar but it's not printing the bar in the same line
code:
using System;
using System.Threading;

namespace FakeLoading
{
    internal class FakeLoad
    {
        public static void Main(string[] args)
        {
            for(int i = 0; i < 20; i++)
            {   
                Console.Write($"\rLoading : [{new string('#', i)}{new string('.', 20 - i)}]");
                Thread.Sleep(100);
            }
        }
    }
}
using System;
using System.Threading;

namespace FakeLoading
{
    internal class FakeLoad
    {
        public static void Main(string[] args)
        {
            for(int i = 0; i < 20; i++)
            {   
                Console.Write($"\rLoading : [{new string('#', i)}{new string('.', 20 - i)}]");
                Thread.Sleep(100);
            }
        }
    }
}
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ How to make a "loading" progress bar
C#CC# / help
2y ago
Progress bar problem
C#CC# / help
2y ago
❔ BAR CUSTOMIZATION C#
C#CC# / help
3y ago
Properties search bar for WinForms
C#CC# / help
7mo ago