R
R
RealKritik2020-09-25 08:36:42
C++ / C#
RealKritik, 2020-09-25 08:36:42

How to save new tabpage tabs?

How to save new tabpage tabs?
A professional can handle such a complex issue !!!
how to save a tabpage tab from tabcontrol, which a new one was called with a button? so that on a new entry it remains. Save the text in the textbox without problems, when you open it again everything remains, but I can’t save the tab and find it too. for example, it's like in any browser there is a setting so that all open tabs are saved. below is the usual example of calling tabs .. and then how to save help. I'm still a big newbie.

private void NewTab()
{
TabPage tab = new TabPage();

TabControl1.Controls.Add(tab);
}
private void button1_Click(object sender, EventArgs e)
{
New Tab();
}

do not need examples with text. it is necessary for this example that

they should be added and removed indefinitely and saved at the start of the program.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Makarov, 2020-09-25
@DmitryITWorksMakarov

It is necessary to save the state of the program between launches, for example, to a file.

R
RealKritik, 2020-09-29
@RealKritik

Recently, two students claimed that it would not be possible to save with such a code, and I'm starting to believe it :\

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question