For some reason I can't figure this out. Here's my code.

Code:
        colorTextbox.Text = Format(Hex(ColorBox.Color.G), "00")
What I want it to do is format the Green Hex number to be "00" instead of just "0" when the color is something like black.

This has proven to be very stressful and this Format command makes no sense to me anymore (worked differently in 2005). For one, whatever I put in the quotes ("00") is what comes out in the text box. But according to the command parameters, "00" should be the format, not the actual text! So then I tried any string format I could think of (## etc.) along with switching the order and I STILL can't figure this out.

I'm not sure what I'm not getting but this makes no sense. I've google, used the MSDN Library, and tried all sorts of stuff but I can't gain anything on this problem.

I know I can go the long way and make an if = 0 then = "00" type statement but I swear there's a format function to do it, I just can't figure it out.