Microsoft.Xrm.Client Microsoft.Xrm.Sdk void Main() { DisplayProgress(32); DisplayProgressPercent(76); Console.WriteLine("Done"); } private void DisplayProgress(float steps) { var pb = new Util.ProgressBar("Initialising...."); pb.Dump(); Thread.Sleep(2000); for (int i = 1; i < steps+1; i++) { pb.Caption = "Completed " + i + " out of " + steps; pb.Fraction = i / steps; Thread.Sleep(50); } } private void DisplayProgressPercent(float steps) { var pb = new Util.ProgressBar("Initialising...."); pb.Dump(); Thread.Sleep(2000); for (int i = 1; i < steps + 1; i++) { double percent = (i / steps) * 100; pb.Caption = "Completed " + percent + "%"; pb.Percent = (int)percent; Thread.Sleep(100); } }