Sunday, 8 September 2013

C# Public void not working cross forms

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