C# Public void not working cross forms
When I trying to do this:
form1:
Form1 form1 = new Form1();
form1.AddToListView();
form2:
public void AddToListView()
{
AddList();
listView1.Items.Add("Test", "Test", 0);
label1.Text = "Test";
}
nothing happens in Form 1!
No comments:
Post a Comment