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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. DateTimeControl's Format changes...

DateTimeControl's Format changes...

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelp
3 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.
  • U Offline
    U Offline
    ugur_basak
    wrote on last edited by
    #1

    in one of my forms, i'm using 2 datetimecontrols. One of its format is "Short Date" there is no problem about this. Other one must be "Time", i set it to time and compile. Everything is great, working but there is a problem. When i go to resources and check it, "Time" is changed to "Short Date" and when i compile it it acts like "Short Date". is there a solution or do i have to change it everytime:) i am using visual studio 7.0

    M 1 Reply Last reply
    0
    • U ugur_basak

      in one of my forms, i'm using 2 datetimecontrols. One of its format is "Short Date" there is no problem about this. Other one must be "Time", i set it to time and compile. Everything is great, working but there is a problem. When i go to resources and check it, "Time" is changed to "Short Date" and when i compile it it acts like "Short Date". is there a solution or do i have to change it everytime:) i am using visual studio 7.0

      M Offline
      M Offline
      mark novak
      wrote on last edited by
      #2

      I know what you're talking about, I've had the same thing happen to me. You can try changing the style on WM_INITDIALOG by doing something like: dtp.ModifyStyle(0, DTS_TIMEFORMAT);

      U 1 Reply Last reply
      0
      • M mark novak

        I know what you're talking about, I've had the same thing happen to me. You can try changing the style on WM_INITDIALOG by doing something like: dtp.ModifyStyle(0, DTS_TIMEFORMAT);

        U Offline
        U Offline
        ugur_basak
        wrote on last edited by
        #3

        Thanks for your help Mark.It works. its an easy solution. but i cant think it:)

        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