I tried (To edit the text of a TextBox)
public static void test(String s)
{
mainName.Text = "";
}
But it gives me an error. How can I fix it ? Note: This code is in the form2.cs
Try the following.
public static void test(String s)
{
form2 frm = new form2();
frm.mainName.Text = "";
}