Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Answers
Load from .txt to textboxes
Csharp Ninja
12y
5.3k
1
Reply
As you see, I have 3 textbox in my form. and I have a .txt file on desktop.
How can I Load this .txt file with button1 to textboxes. I want to textbox1 get line1 from txt file, textbox2 gets line2 from txt file, textbox3 gets line3 from txt file.
How can I do that? What code should I write in button1 click event.
I think I need some OpenFileDialog And StreamReader codes. but I can't do it. Help me please.
Thanks
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
Cutting string and converting it
Calculate Hours total in datagridview cells