Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. DateTimePicker UpDown default to change seconds

DateTimePicker UpDown default to change seconds

Scheduled Pinned Locked Moved Windows Forms
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    earlgraham
    wrote on last edited by
    #1

    I am using the DateTimePicker to get a time from my users. It has a custom format of mm:ss. I have my ShowUpDown set to true. However, most of the time changes my users will be making will be in the seconds field. The upDown defaults to changing minutes. Is there a way to make the default be seconds?

    Programmer Glenn Earl Graham Austin, TX

    V 1 Reply Last reply
    0
    • E earlgraham

      I am using the DateTimePicker to get a time from my users. It has a custom format of mm:ss. I have my ShowUpDown set to true. However, most of the time changes my users will be making will be in the seconds field. The upDown defaults to changing minutes. Is there a way to make the default be seconds?

      Programmer Glenn Earl Graham Austin, TX

      V Offline
      V Offline
      visualhint
      wrote on last edited by
      #2

      Hello Glenn, There is no way to programmatically change the currently selected field in a Microsoft DateTimePicker. There is no notion of default field either. The first time the user goes on this dtp, the minutes field is selected. If he leaves the field after selecting the seconds field, when coming back to the dtp, the seconds will be selected and the updown field will act on this field. Best regards, Nicolas Cadilhac @ VisualHint Smart FieldPackEditor.Net / DateTimePicker Smart PropertyGrid.Net Microsoft PropertyGrid Resource List Free PropertyGrid for MFC

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups