Change content of text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dra9
    New Member
    • Jul 2008
    • 2

    Change content of text box

    How would I fill the content of an text box with the current date
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    I think there shuld be a separate forum for the VC++/MFC/COM specific questions.

    Raghu

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Originally posted by gpraghuram
      I think there shuld be a separate forum for the VC++/MFC/COM specific questions.
      lol, The moderators are currently submitting suggestions for new forums, I'll add it to the list.

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Originally posted by Dra9
        How would I fill the content of an text box with the current date
        Is this an MFC, WIN32 or .NET application on Windows or soething else?

        Comment

        • gpraghuram
          Recognized Expert Top Contributor
          • Mar 2007
          • 1275

          #5
          Originally posted by Banfa
          Is this an MFC, WIN32 or .NET application on Windows or soething else?
          I think we shuld add x-windows also to this.

          Raghu

          Comment

          • Dra9
            New Member
            • Jul 2008
            • 2

            #6
            Sorry, I was sleeping
            This is VC# and its Windows

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              Originally posted by Dra9
              Sorry, I was sleeping
              This is VC# and its Windows
              You can dynamically change the contents of a TextBox using it's Text Property.

              Eg

              [code=cpp]

              myTextBox.Text= "hello world!";

              [/code]

              Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics. A great place to start your research is the MSDN Library. It contains details on all of the .NET classes and concepts...like the TextBox Class.


              -Frinny

              Comment

              Working...