المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Accessing control from multiple forms



C# Programming
04-07-2009, 10:50 AM
Hi
I have a listview control in Form1 which displays the file information.I have another listview control in Form2.Whatever gets displayed in listview of Form1 should also be displayed in ;listview of Form2.I tried using the object of Form2 but it dint work.Can you give your suggestions?
In form1
for2=new Form2();
for.listView1.Items.Add();