CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    10

    Cant get editbox to display text

    I'm using Visual C++ 4.
    How do I make an editbox display text or a string variable.


  2. #2
    Join Date
    Apr 1999
    Posts
    19

    Re: Cant get editbox to display text

    if 4 works like 5&6, then....

    CString teststr = "hello world";
    //where teststr is the member variable to the control//
    UpdateData(false);




  3. #3
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Cant get editbox to display text


    CEdit edit1;

    .....

    edit1.SetWindowText( "hello, edit" );

    CString str1( "my string" );
    edit1.SetWindowText( str1 );


    Sally


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured