Global Formating of Text Fields

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • randy.buchholz

    Global Formating of Text Fields

    I am looking for a way to apply a format by data type. For example, I would
    like to format all dates as {0:d} without having to do each by hand. I am
    using themes and looked around there but couldn't find anything. Thanks.


  • Eliyahu Goldin

    #2
    Re: Global Formating of Text Fields

    You can make a user control or you can inherit your own textbox from the
    TextBox.

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]




    "randy.buchholz " <randy.buchholz @dads.state.tx. uswrote in message
    news:e0xHttTfIH A.1132@TK2MSFTN GP06.phx.gbl...
    >I am looking for a way to apply a format by data type. For example, I
    >would like to format all dates as {0:d} without having to do each by hand.
    >I am using themes and looked around there but couldn't find anything.
    >Thanks.
    >

    Comment

    • randy.buchholz

      #3
      Re: Global Formating of Text Fields

      Yes, that will work for textboxes, but I want to do this for all text fields
      including Grid and Detail controls. I can convert to template fields and
      use a custom control, but that puts me back to having to play with each
      instance.

      "Eliyahu Goldin" <REMOVEALLCAPIT ALSeEgGoldDinN@ mMvVpPsS.orgwro te in
      message news:OTRQLIUfIH A.4144@TK2MSFTN GP05.phx.gbl...
      You can make a user control or you can inherit your own textbox from the
      TextBox.
      >
      --
      Eliyahu Goldin,
      Software Developer
      Microsoft MVP [ASP.NET]


      >
      >
      "randy.buchholz " <randy.buchholz @dads.state.tx. uswrote in message
      news:e0xHttTfIH A.1132@TK2MSFTN GP06.phx.gbl...
      >>I am looking for a way to apply a format by data type. For example, I
      >>would like to format all dates as {0:d} without having to do each by hand.
      >>I am using themes and looked around there but couldn't find anything.
      >>Thanks.
      >>
      >
      >

      Comment

      • Eliyahu Goldin

        #4
        Re: Global Formating of Text Fields

        You may want to look into culture-related things. Something like


        I don't have any personal experience with that but it looks like something
        that can help you.

        --
        Eliyahu Goldin,
        Software Developer
        Microsoft MVP [ASP.NET]




        "randy.buchholz " <randy.buchholz @dads.state.tx. uswrote in message
        news:u1X5%23MUf IHA.5560@TK2MSF TNGP04.phx.gbl. ..
        Yes, that will work for textboxes, but I want to do this for all text
        fields including Grid and Detail controls. I can convert to template
        fields and use a custom control, but that puts me back to having to play
        with each instance.
        >
        "Eliyahu Goldin" <REMOVEALLCAPIT ALSeEgGoldDinN@ mMvVpPsS.orgwro te in
        message news:OTRQLIUfIH A.4144@TK2MSFTN GP05.phx.gbl...
        >You can make a user control or you can inherit your own textbox from the
        >TextBox.
        >>
        >--
        >Eliyahu Goldin,
        >Software Developer
        >Microsoft MVP [ASP.NET]
        >http://msmvps.com/blogs/egoldin
        >http://usableasp.net
        >>
        >>
        >"randy.buchhol z" <randy.buchholz @dads.state.tx. uswrote in message
        >news:e0xHttTfI HA.1132@TK2MSFT NGP06.phx.gbl.. .
        >>>I am looking for a way to apply a format by data type. For example, I
        >>>would like to format all dates as {0:d} without having to do each by
        >>>hand. I am using themes and looked around there but couldn't find
        >>>anything. Thanks.
        >>>
        >>
        >>
        >
        >

        Comment

        • randy.buchholz

          #5
          Re: Global Formating of Text Fields

          Thanks, this does looks like a a good starting place. I'll post anything I
          discover.

          "Eliyahu Goldin" <REMOVEALLCAPIT ALSeEgGoldDinN@ mMvVpPsS.orgwro te in
          message news:%23FQ%23NU UfIHA.4728@TK2M SFTNGP03.phx.gb l...
          You may want to look into culture-related things. Something like

          >
          I don't have any personal experience with that but it looks like something
          that can help you.
          >
          --
          Eliyahu Goldin,
          Software Developer
          Microsoft MVP [ASP.NET]


          >
          >
          "randy.buchholz " <randy.buchholz @dads.state.tx. uswrote in message
          news:u1X5%23MUf IHA.5560@TK2MSF TNGP04.phx.gbl. ..
          >Yes, that will work for textboxes, but I want to do this for all text
          >fields including Grid and Detail controls. I can convert to template
          >fields and use a custom control, but that puts me back to having to play
          >with each instance.
          >>
          >"Eliyahu Goldin" <REMOVEALLCAPIT ALSeEgGoldDinN@ mMvVpPsS.orgwro te in
          >message news:OTRQLIUfIH A.4144@TK2MSFTN GP05.phx.gbl...
          >>You can make a user control or you can inherit your own textbox from the
          >>TextBox.
          >>>
          >>--
          >>Eliyahu Goldin,
          >>Software Developer
          >>Microsoft MVP [ASP.NET]
          >>http://msmvps.com/blogs/egoldin
          >>http://usableasp.net
          >>>
          >>>
          >>"randy.buchho lz" <randy.buchholz @dads.state.tx. uswrote in message
          >>news:e0xHttTf IHA.1132@TK2MSF TNGP06.phx.gbl. ..
          >>>>I am looking for a way to apply a format by data type. For example, I
          >>>>would like to format all dates as {0:d} without having to do each by
          >>>>hand. I am using themes and looked around there but couldn't find
          >>>>anything. Thanks.
          >>>>
          >>>
          >>>
          >>
          >>
          >
          >

          Comment

          Working...