(Using WinForms btw)
Alright so I made Options.cs open From Form1 using a toolStripButton with this code:
and on the Options form I have this:
And this is where the problem arises. There isn't any errors and Form1.Text remains the same, the reason I have a Refresh in there is because I noticed that if I did ShowDialog then on the second Form1 the title changed. Any suggestions?
Sorry I'm a new to C# 😊
Alright so I made Options.cs open From Form1 using a toolStripButton with this code:
Code
namespace Application
{
public partial class Form1 : Form
{
private void toolStripButton6_Click(object sender, EventArgs e)
{
Options Options = new Options();
Options.ShowDialog();
}
}
}and on the Options form I have this:
Code
namespace Application
{
public partial class Options : Form
{
public void button1_Click(object sender, EventArgs e)
{
Form1 f1 = new Form1();
f1.Text = textBox1.Text;
f1.Refresh();
this.Hide();
}
}
}And this is where the problem arises. There isn't any errors and Form1.Text remains the same, the reason I have a Refresh in there is because I noticed that if I did ShowDialog then on the second Form1 the title changed. Any suggestions?
Sorry I'm a new to C# 😊




![[Image: 3QH0jY6.png]](https://i.imgur.com/3QH0jY6.png)
![[Image: SjWMyMB.png]](https://i.imgur.com/SjWMyMB.png)