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. C#
  4. text formating in textbox

text formating in textbox

Scheduled Pinned Locked Moved C#
questiontutorial
2 Posts 2 Posters 3 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
    sianatia
    wrote on last edited by
    #1

    hi, how can i put string formatting to my textbox?for example i want user to input the date so i want to have two "/" in the textbox to have the "yyyy/mm/dd" formatting thanks

    C 1 Reply Last reply
    0
    • S sianatia

      hi, how can i put string formatting to my textbox?for example i want user to input the date so i want to have two "/" in the textbox to have the "yyyy/mm/dd" formatting thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You need to format the string first, then pass it to the textbox. Or if you want to type it and see it formatted as you type, you need to write your own textbox, with the existing textbox as a base class, and format the string yourself. Christian Graus - Microsoft MVP - C++

      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