namespace MyNameSpace
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load (object sender, EventArgs e)
{
StartMethod();
}
public void startMethod()
{
Class1 ClasInherited = new Class1();
ClasInherited.ChangeLabelText();
}
.
.
public partial class Class1
{
Form1 form1 = new YuzeyAnaliz();
public void ChangeLabelText()
{
form1.label5.Text = "Text changed";
}
.
.