By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

leading zero in spinbox?

P: 1
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?
Nov 7 '06 #1
Share this Question
Share on Google+
1 Reply


100+
P: 267
hi

try using
format(minutes,"00")
Nov 7 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.