RichTextBox problem

re_animate

New member
Joined
Mar 19, 2007
Messages
2
Programming Experience
Beginner
hey guys noob here,
ive got VB.net 2005
ok well i have a text editor i want to make, a few things i want to ask

Im using a rich text box for the main typing box and the problem is when i save it as a .txt file it ends up all full of cubes and randoms stuff, how can i make it save as a normal text file?

im making it a windows with the new open and save thing at the top as full screen....... just see this...

thingeq2.jpg


im trying to make a windows pop up inside it allowing me to edit code and move the window but not let the window get out of the screen... u know like in photoshop or soundforge how you can open multiple projects at a time..... yea well how do i do that

and las but not least... how do i use the save dialog and load dialog
i want the Richtextbox to be saved as a txt file and be able to load a txt and display it.....

yea how do i do that....
 
Last edited:
hey guys noob here,
ive got VB.net 2005
ok well i have a text editor i want to make, a few things i want to ask

Im using a rich text box for the main typing box and the problem is when i save it as a .txt file it ends up all full of cubes and randoms stuff, how can i make it save as a normal text file?
Post the code youre using to create the file



im trying to make a windows pop up inside it allowing me to edit code and move the window but not let the window get out of the screen... u know like in photoshop or soundforge how you can open multiple projects at a time..... yea well how do i do that

THe main window needs to have its .IsMdiContainer set to TRUE
Each child window must, before being shown, but after being created, have its .MdiParent property set = to the main form:

myMainForm.IsMdiContainer = true
Dim x as new ChildForm
x.MdiParent = myMainForm
x.Show()

and las but not least... how do i use the save dialog and load dialog
i want the Richtextbox to be saved as a txt file and be able to load a txt and display it.....
your post indicates that you already know how to save a file, all you need is to know how to use the OpenFileDialog and SaveFileDialog. Did you consider reading the documentation?
 
Im using a rich text box for the main typing box and the problem is when i save it as a .txt file it ends up all full of cubes and randoms stuff, how can i make it save as a normal text file?
Use the RichTextBox methods Loadfile and Savefile, they support the FileType parameter that can be set to for example Rich Text and Plain Text.
 
Back
Top