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.
15 posts Page 1 of 2
Contributors
User avatar
marve25
VIP - Donator
VIP - Donator
Posts: 40
Joined: Sun Sep 20, 2009 3:47 pm

i need help with setting files .ini
marve25
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
Last edited by marve25 on Thu Mar 17, 2011 7:41 pm, edited 1 time in total.
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

my.computer.filesystem.writealltext(textbox.text,pfad der datei)
un für text in die textbox
textbox1.text=my.computer.filesystem.readalltext(datei)
YouTube Downloader v3.0
Image
Image
Image
User avatar
marve25
VIP - Donator
VIP - Donator
Posts: 40
Joined: Sun Sep 20, 2009 3:47 pm

umm... in english please?
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

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 ?!
YouTube Downloader v3.0
Image
Image
Image
User avatar
marve25
VIP - Donator
VIP - Donator
Posts: 40
Joined: Sun Sep 20, 2009 3:47 pm

yes, but i were wondering how to do it with two or more textboxes
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

to write the text in file u need this Code
My.Computer.Filesystem.WriteallText(textbox1.text & textbox2.text & textbox3.text,"Path and FileName")
YouTube Downloader v3.0
Image
Image
Image
User avatar
marve25
VIP - Donator
VIP - Donator
Posts: 40
Joined: Sun Sep 20, 2009 3:47 pm

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.
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

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.
YouTube Downloader v3.0
Image
Image
Image
User avatar
marve25
VIP - Donator
VIP - Donator
Posts: 40
Joined: Sun Sep 20, 2009 3:47 pm

ok, is it the same with getting them back in the textboxes from the file?
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

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...
YouTube Downloader v3.0
Image
Image
Image
15 posts Page 1 of 2
Return to “Tutorial Requests”