i need help with setting files .ini
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
i need help to make a program that can save multiply textboxes into a single .ini file and then open it and put the text back in the textboxes again
an example
http://www.youtube.com/watch?v=cZaIw1PX ... ure=relmfu
an example
http://www.youtube.com/watch?v=cZaIw1PX ... ure=relmfu
Last edited by marve25 on Thu Mar 17, 2011 7:41 pm, edited 1 time in total.
my.computer.filesystem.writealltext(textbox.text,pfad der datei)
un für text in die textbox
textbox1.text=my.computer.filesystem.readalltext(datei)
un für text in die textbox
textbox1.text=my.computer.filesystem.readalltext(datei)
thats english ...
to write the text in file u need this Code
My.Computer.Filesystem.WriteallText("TEXT to WRITE","Path and FileName")
To Read text from a File into a TextBox
Textbox1.text=My.Computer.Filesystem.ReadAllText("Path and FileName")
Understand ?!
to write the text in file u need this Code
My.Computer.Filesystem.WriteallText("TEXT to WRITE","Path and FileName")
To Read text from a File into a TextBox
Textbox1.text=My.Computer.Filesystem.ReadAllText("Path and FileName")
Understand ?!
yes, but i were wondering how to do it with two or more textboxes
to write the text in file u need this Code
My.Computer.Filesystem.WriteallText(textbox1.text & textbox2.text & textbox3.text,"Path and FileName")
My.Computer.Filesystem.WriteallText(textbox1.text & textbox2.text & textbox3.text,"Path and FileName")
yes, but to load it into the textboxes from the file, and the text still have the same place into the textboxes, if you watch the video you would understand.
To Help you , you have better explain what you want...
And if u want that textbox1.text is in first line in text file and textbox2.text in next line then u need tp edit code (textbox1.text & vbnewline & textbox2.text & vbnewline & textbox3.text) like this.
And if u want that textbox1.text is in first line in text file and textbox2.text in next line then u need tp edit code (textbox1.text & vbnewline & textbox2.text & vbnewline & textbox3.text) like this.
ok, is it the same with getting them back in the textboxes from the file?
i mean this for the writing code...
and later u when u get the text back from the file into the textbox it appears textbox1.text and in next line text from other textbox...
and later u when u get the text back from the file into the textbox it appears textbox1.text and in next line text from other textbox...
Copyright Information
Copyright © Codenstuff.com 2020 - 2023