Easy TextEditor

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
1 post Page 1 of 1
Contributors
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

Easy TextEditor
Napster1488
Here i am going to show you How to Make an Easy TextEditor.

What u need:
1xToolstrip with a "DropDownButton"
DropDownButton Text "&File"
Add 3Items in the DropDownButton
"&Open"
"&Save"
"Exit"
1xRichTextBox
1xOpenFileDialog
1xSaveFileDialog

Add a Import over your Public Class Form Code
Code: Select all
Imports System.IO
"&Open" Button Code
Code: Select all
OpenFileDialog1.ShowDialog()
If OpenFileDialog1.filename = "" Then

        Else
            RichTextBox1.text = My.Computer.FileSystem.ReadAllText(OpenFileDialog1.filename)
        End If
"&Save" Button Code
Code: Select all
SaveFileDialog1.showdialog()
        If SaveFileDialog1.filename = "" Then

        Else
            My.Computer.FileSystem.WriteAllText(SaveFileDialog1.filename, RichTextBox1.text, False)
        End If
"Exit" Button Code
Code: Select all
Me.Close()
Thats it!
YouTube Downloader v3.0
Image
Image
Image
1 post Page 1 of 1
Return to “Tutorials”