answersLogoWhite

0

# Create a Windows application project # Go to designer mode. Add the rich text box control to your form # Double click anywhere on the bar at the top of the form (the bar that has minimise/maximise) # Paste the code below into the new area that just came out. # change the bits that are in bold in the text below suit the program # When you run the program, it should load a text file from the desired location.

Dim Reader As System.IO.StreamReader

Reader = New System.IO.StreamReader("C:\Textfile.txt") '<-- where to read from Dim tempstring As String Do

tempstring = Reader.ReadLine()

richtextbox1.Text = richtextbox1.Text + tempstring + vbLf

Loop Until tempstring = ""

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What are the steps for inserting an image in notepad?

You can not insert an image in Notepad as it is a plain-text editor. If you would like to insert an image into a document, use Wordpad (the button is at Insert --&gt; Image in Windows 7)


What program is used for making websites?

Simply notepad, you need to learn the language HTML


Is java better than vbnet?

Java is not better than VBNet, nor is VBNet better than Java. Eachone has its advantages and disadvantaged over the other one.


What is the difference between C and Vbnet?

It is just a different coding language, but C is more for business that VBNET


What is datareader in VBNET?

x


How do you make executable files on notepad?

Making an executable file in notepad is like trying to write a song in notepad. If you were to view an .exe in notepad all that you would see is a jumbled mess of numbers and symbols. However, if you really wanted to you could write a program using a programing language like C# or Pascal in notepad and later convert it to an executable. Here is to show part of an exe file looks like in notepad. &ocirc;&#12544;YY&cedil;pL&#12544;&eacute;&#12544;&#12544;&iquest;&#148;dK&#12544;Wh&#152;dK&#12544;&#141;&acute;$&#144;&#12544;&#12544;&egrave;&iacute;&ucirc;&yuml;&yuml;Wh&deg;d


What is an instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


What is instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


IS VBNet purely objet oriented?

no


Who is the father of vbnet?

Alan Cooper


Why do filmmakers have a notepad and pencil while making a movie?

They have it just in case h or she needs to make changes to the scenes.


How many steps are in the process of making a painting?

There is about 4 steps to making a painting...........First, Second, Then, Finally!