zeke188 0 Newbie Poster

hello

i know that to sav i have to write someting like this

if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                StreamWriter sw = new StreamWriter(saveFileDialog1.FileName);
                sw.WriteLine(this.textBox2.Text);
                
                sw.Close();
            }

how would i go about saving more than like 5 textboxes and other stuff like pictureboxes.
do i manually enter the picture box the loop through the textboxes.
also how do i make sure the saved document is in the right order

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.