How to use string formats in C#?
<p>I have three textboxes in my control,for hour, minute and second.</p>

<p>User can input the values in text boxes.</p>

<p>I want to return the combined value in a format like HHH:mm:ss, how can I do that ?</p>

<p>For example if user puts the values 4,3,45 it should be <code>004:03:45</code>.</p>

<p>Please guide me to that, I tried with <code>string.Format("{0:000}:{1:00}:{2:00}",ht,mt,st)</code></p>

<p>but it's not working, can I also use TimeSpan to achieve the same ?</p>
