I propose such decision
Main form:
namespace stackoverflow
{
public partial class MainForm : Form
{
private static Form2 new_form = new Form2();
public MainForm()
{
InitializeComponent();
new_form.Show();
}
void Button1Click(object sender, EventArgs e)
{
new_form.CreateBtn( richTextBox1.Text );
}
}
}
Second form:
namespace stackoverflow
{
public partial class Form2 : Form
{
private Button btn = null;
public Form2()
{
InitializeComponent();
}
public void CreateBtn( string text ) {
if ( btn == null ) {
btn= new Button();
btn.Parent = this.tabPage1;
}
btn.Text = text;
this.Refresh();
}
}
}