leading zero in spinbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aft3rgl0w
    New Member
    • Nov 2006
    • 1

    #1

    leading zero in spinbox?

    hello everyone, i am trying to create an activex clock control, which can display the current time or be used to set a time in a control. i am using Visual Basic 2005, with 3 numericupdown (spinboxes) used to display the hour, min and sec. However, i want the min and sec boxes to display a leading zero (ie i want it to show [12]:[04]:[06] pm not [12]:[4]:[6])
    can this be done with a spinbox, and if so how?
  • albertw
    Contributor
    • Oct 2006
    • 267

    #2
    hi

    try using
    format(minutes, "00")

    Comment

    Working...