Author Topic: Spiner time view in dialog  (Read 45 times)

erezpaz

  • Newbie
  • *
  • Posts: 35
Spiner time view in dialog
« 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

JTaylor

  • Pundit
  • *****
  • Posts: 679
    • Data & Stuff Inc.
Re: Spiner time view in dialog
« Reply #1 on: April 19, 2017, 11:46:54 am »
Having you considered using the new DateTime Picker?

Jim

erezpaz

  • Newbie
  • *
  • Posts: 35
Re: Spiner time view in dialog
« Reply #2 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

JTaylor

  • Pundit
  • *****
  • Posts: 679
    • Data & Stuff Inc.
Re: Spiner time view in dialog
« Reply #3 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