CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Edit control

  1. #1
    Join Date
    May 1999
    Posts
    30

    Edit control

    my app reads a text file and writes to a database. How do I use Edit control to tell or display in my window about the status of my application (ie) reading the text file now, now writing into database


  2. #2
    Join Date
    Apr 1999
    Posts
    5

    Re: Edit control

    Attach a var to you CEdit control. Then add the text to the var eg.
    m_edit = "Writing Data";
    UpdateData( FALSE );



  3. #3
    Join Date
    May 1999
    Posts
    4

    Re: Edit control

    Simple,

    Define a variable of CString type , which maps to the Edit control, thru the class wizard.

    The when you are calling the read from text file function, assign some text to the CString Variable and call UpdateData(FALSE) , this will show the text on the edit box. do this for the save database function also.

    The code for this could be :

    CString strShowText; // declared in the header file

    then when the function is called:

    strShowText = "Blah, Blah, .....";
    UpdateData(FALSE);





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