Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have a text file and I need to put all the text in this in my edit control directly and I don´t know how.Please someone help me
Posted
Comments
Steve Maier 13-Oct-11 14:39pm    
What are you using, MFC? ASP.NET? WinForm? WPF? or just the WinSDK directly?

1 solution

If you are using plain Win32 API:
Read the file content into a buffer (see Opening a File for Reading or Writing at MSDN[^]) and then send the WM_SETTEXT message to the edit control (see How to Create a Multiline Edit Control at MSDN[^]).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900