c# - Reading text into a richtextbox -


i have problem, wanna read out text file richtextbox, use method, load textbox:

private void richtextbox1_textchanged(object sender, eventargs e)     {         richtextbox1.text = file.readalltext(@"c:\users\textfile1.txt", encoding.default);     } 

the problem is, shows me text if press letter on keyboard, "a" or "b". searched in google, couldn't find similar. hope can me here ;) btw: using visual studio express 2012

you use textchanged event display text file , try put same code form load or other event want


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -