I wish to have Result(3) zero padded on the left so that it's always 2 characters wide. I don't know how to accomplish this. for instance, if Result(2) is 1 and Result(3) is 5, I want it displayed as '1.05'. if Result(2) is 1 and Result(3) is 12, I want it displayed as '1.12'. How can this be accomplished?
Code:lblVersion.Text = String.Format("{0}.{1}", Result(2), Result(3))
Thanks.
Peter




Reply With Quote