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#
  4. Space Formatting

Space Formatting

Scheduled Pinned Locked Moved C#
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.
  • S Offline
    S Offline
    Sovman
    wrote on last edited by
    #1

    I would like to display a set of dates in long format but want to keep all days months and years underneath each other with in a set of text boxes eg 01 January 2003 12 May 2005 14 December 2002 This is similar to how the datepicker works. If I use a space character the years do not line up as all space becomes compressed. Any Ideas on the character I need to pad out the text with?? Thanks Steve Graham

    C 1 Reply Last reply
    0
    • S Sovman

      I would like to display a set of dates in long format but want to keep all days months and years underneath each other with in a set of text boxes eg 01 January 2003 12 May 2005 14 December 2002 This is similar to how the datepicker works. If I use a space character the years do not line up as all space becomes compressed. Any Ideas on the character I need to pad out the text with?? Thanks Steve Graham

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      Not sure if this is possible, but try replacing the space character with a tab character, and then set the tab stops for the text boxes. This is the way I would do it with edit boxes or list boxes in MFC or Win32. Chris Meech "what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002. "AAAAAAAAAHHHHHH!!!!! Those leaks are driving me crazy! How does one finds a memory leak in a garbage collected environment ??! Daniel Turini Nov. 2, 2002.

      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