Jump to content

How Do I Make A Notepad In VB 2008?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
Cetol

Cetol

    Newbie

  • Members
  • Pip
  • 8 posts
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.
Posted Image

#2
Cetol

Cetol

    Newbie

  • Members
  • Pip
  • 8 posts
Can anyone please help me?

I'm very confused about this.
I just want a save and open button :(
Posted Image

#3
Cetol

Cetol

    Newbie

  • Members
  • Pip
  • 8 posts
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:
Posted Image

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Please do not bump your posts twice. If someone knows how to do this, he/she will surely post and help you.

Thanks

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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
newcooler

newcooler

    Newbie

  • Members
  • Pip
  • 1 posts
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.
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
jimmy541

jimmy541

    Newbie

  • Members
  • Pip
  • 1 posts
visit this link reflectionforbrain.com/form/NotepadT.htm

#8
Ray Tawil

Ray Tawil

    Programmer

  • Members
  • PipPipPipPip
  • 108 posts
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
Share your Knowledge, It's one way to achieve immortality.
Video Tutorial Channel