Hello, i am currently developing a new OpenSource project.
I will release it to the public this week. :-)
Let's get to my question(s) then:
I have a Rich Text Box, and i want to save that text into a default extension.
I want the default name to be found in the textbox, E.g: Hello my name is Zack (The file would appear as default name Zack on the Save File Dialog, but if the name was Richards, it would appear Richards instead).
Also, the Save File Dialog should open a default folder. (.../Saved)
I lack knowledge in saving files on VB.NET, any help would be greatly appreciated and a great boost on my project.
Re: Saving a file: Default Extension, Name & Folder
Thanks, this is almost solved.
The problem is:
if there is a large text in the textbox, i would like to delete it from the filename, only getting the "my name is Zack" part, therefore making it possible to write a whole text and it finds "my name is Zack" somewhere, and gets Zack as filename (Zack has example, could be Richards or anything else.
Re: Saving a file: Default Extension, Name & Folder
Thats pretty hard if the text is always different. A simple solution would be that you force the user to write their name into a sepearate textbox so you can use that as the file name.
If you want to stick to the solution you already have then it will be pretty hard because you never know where the name is and users normally never stick to the syntax, so you cant trust them that they will always write "hello my name is blabla"
Re: Saving a file: Default Extension, Name & Folder
This would be used for a Java Compiler.
Which always has the "public class Scriptname" part, which "Scriptname" has to be the name of the file.
Thank you for your help, but is it anyway to do this?
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.