Equivalent of Format of VB in C#
String.Format(format, iCryptedByte); // where format like {0:D2}
See MSDN 1, 2, 3
Another very useful site for C# string formatting: http://blog.stevex.net/string-formatting-in-csharp/
Instead of {0:D3}
you can also use the zero placeholder, e.g. {0:000}
will pad with zeros to minimum length of three.