WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: erezpaz on April 19, 2017, 11:36:28 AM

Title: Spiner time view in dialog
Post by: erezpaz on April 19, 2017, 11:36:28 AM
Hi,

I am using spinner control in dialog and want to show time for user to choose. When minutes or hours are less then 10 I want to show it with zero digit before the number like : "03" , "08" etc. Spinner will remove the zero before and will show it only as "3" or "8". How can i show time with single digit with zero before number?

Thanks
Title: Re: Spiner time view in dialog
Post by: JTaylor on April 19, 2017, 11:46:54 AM
Having you considered using the new DateTime Picker?

Jim
Title: Re: Spiner time view in dialog
Post by: erezpaz on April 19, 2017, 12:03:57 PM
You mean here?
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/dotNet/System_Windows/System_Window_Forms+DateTimePicker.txt

I need it to be part of existing dialog. Also i am using for date the "Calendar" dialog control
Title: Re: Spiner time view in dialog
Post by: JTaylor on April 19, 2017, 12:08:41 PM
No.  The version of WinBatch prior to the latest release included the DateTime control.  If you are up-to-date check the documentation for "DateTime Control".

Jim