Tabcontrol into .txt
Posted: Sat Aug 11, 2012 7:22 pm
Hello, i thought im out of needing help and this is my last help for this minute LOL,
Im trying to do (below) but cant, anyone can help please loove; cooll;
( i will explain what i want in 2 ways so u can understand it xD )
First way:
Can u change this code to all the tabpages instead of selected only? idk how to do it like For Each I ... xD
Second way
I mean if u dont understand the thing in trying to do, this is another expalination xD,
I want to click a button, then ALL TabPages in tabcontrol1 will be saved (.txt) in a folder "C:/Folder" and with name of the selected tab name, also, the way im doing my old code is
Thanks
Im trying to do (below) but cant, anyone can help please loove; cooll;
( i will explain what i want in 2 ways so u can understand it xD )
First way:
Can u change this code to all the tabpages instead of selected only? idk how to do it like For Each I ... xD
Code: Select all
< how to make this code work for all tabpages? i mean 1 click i want all to be done tabpage 1 and 2 and 3 .. etc Dim writer As New IO.StreamWriter("C:\Folder\" & TabControl1.SelectedTab.Text & ".txt")
writer.Write(CType(TabControl1.SelectedTab.Controls.Item(0), TextBox).Text)
writer.Close()
Second way
I mean if u dont understand the thing in trying to do, this is another expalination xD,
I want to click a button, then ALL TabPages in tabcontrol1 will be saved (.txt) in a folder "C:/Folder" and with name of the selected tab name, also, the way im doing my old code is
Code: Select all
this code will work if it was for multipleCType(TabControl1.SelectedTab.Controls.Item(0), TextBox).Text
Thanks