I'm trying to made one.
I think the text box is easy.
But save and open?
Please post one here.
Sorry if I'm being a noob.
How Do I Make A Notepad In VB 2008?
Started by Cetol, Jan 17 2008 04:17 PM
7 replies to this topic
#1
Posted 17 January 2008 - 04:17 PM
|
|
|
#2
Posted 18 January 2008 - 10:48 AM
Can anyone please help me?
I'm very confused about this.
I just want a save and open button :(
I'm very confused about this.
I just want a save and open button :(
#3
Posted 23 January 2008 - 04:25 PM
I really need some help.
I've been trying thousands of codes now!
I tried Google, but nothing came up!
I'm just going to give up on the Note pad. :(
:loading: :irritated: :compress:
I've been trying thousands of codes now!
I tried Google, but nothing came up!
I'm just going to give up on the Note pad. :(
:loading: :irritated: :compress:
#4
Posted 24 January 2008 - 05:25 AM
Please do not bump your posts twice. If someone knows how to do this, he/she will surely post and help you.
Thanks
Thanks
#5
Guest_Jordan_*
Posted 24 January 2008 - 05:39 AM
Guest_Jordan_*
Search google for reading/writing to files using Visual Basic. You may be using 2008 but you will find 2005 tutorials will most likely work with your version. Take the textbox value (you should use a richtextbox IMO) and write it to a file. When loading simply read the file to a string and apply that string to the textbox.
#6
Posted 26 January 2008 - 12:26 AM
Hey, im just a student and so far the easiest for me to save stuff from the program to a text file - is using a normal for loop and getting it to read the stuff you want.
For instance i used this code below to read all the things in the listbox and save it to a text file.
Hope this helps - good luck
For instance i used this code below to read all the things in the listbox and save it to a text file.
For b As Integer = 0 To lstdisplay.Items.Count - 1
Dim line As String
line = lstdisplay.Items(b)
System.IO.File.AppendAllText("File.txt", line + Environment.NewLine)
Next
and to open im guessing you use the same as this - which would be a simple for loop to read all the lines in a text file and display them.Hope this helps - good luck
#7
Posted 06 February 2010 - 09:30 PM
visit this link reflectionforbrain.com/form/NotepadT.htm
#8
Posted 07 February 2010 - 12:47 AM
hello there,
you can drop an RTF control onto your form & save the data from it.
if you want to read from the saved text file here's a link to a tutorial i made:
YouTube - Text To Database - Part 1
YouTube - Text To Database - Part 2
YouTube - Text To Database - Part 3
you can drop an RTF control onto your form & save the data from it.
if you want to read from the saved text file here's a link to a tutorial i made:
YouTube - Text To Database - Part 1
YouTube - Text To Database - Part 2
YouTube - Text To Database - Part 3
Share your Knowledge, It's one way to achieve immortality.
Video Tutorial Channel
Video Tutorial Channel


Sign In
Create Account


Back to top









