Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 707601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:17:47+00:00 2026-05-14T04:17:47+00:00

I have a simple text reading code for Visual Basic: Dim fileReader As String

  • 0

I have a simple text reading code for Visual Basic:

Dim fileReader As String
fileReader = My.Computer.FileSystem.ReadAllText("C:\test.txt")
MsgBox(fileReader)

I have used this in the past, but I usually make the text display in a text box. I know this is sort of a “newb” question but I can’t remember how to display the text in a textbox. If you guys could help me out that would be great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:17:47+00:00Added an answer on May 14, 2026 at 4:17 am

    You’d just do:

     textBox1.Text = fileReader
    

    This puts the contents of the string “fileReader” into the TextBox’s Text, provided you’re doing this from within your Form, and you have a text box on the form named “textBox1”.

    Also, make sure that your text box is set to be a multi line textbox, if your file has more than a single line within it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple java code that reads text csv file that contains sentences
I have the simple JS code for updating text on button: <html> <head> <script
I have the following simple code, that reads contents of a text file into
I have a simple text-shadow: 0.05em 0.05em 0.05em black; I open in Google Chrome
I have a simple text box in a WPF application. I need to know
I have a simple text dictionary file, which contains words, separated by ';'.My problem
I have a simple dojo text box and a value picker. I want to
I have a textView and text like This is the Simple Text with KeyWord
I have a simple viewcontroller with labels and text boxes. but to many to
I have a simple problem while putting text in multiple table! please have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.