How make a picturebox public to forms?VB.net
-
i have form1 and form2, form1 has a picturebox which i wish to make it accessible to other forms after form2 perform some drawing, it need to call form1.picbox.invalidate() to refresh the picbox, how to declare the picbox?anyone have idea?
dim frm1 as form1 frm1 = new form1() frm1.picbox.invalidate
the above code will not work becoz i not wish to create a new instance of form1, wat i wan is to refresh the picbox that already has some drawing on the activated form1.. any help is greatly appreciated... -
i have form1 and form2, form1 has a picturebox which i wish to make it accessible to other forms after form2 perform some drawing, it need to call form1.picbox.invalidate() to refresh the picbox, how to declare the picbox?anyone have idea?
dim frm1 as form1 frm1 = new form1() frm1.picbox.invalidate
the above code will not work becoz i not wish to create a new instance of form1, wat i wan is to refresh the picbox that already has some drawing on the activated form1.. any help is greatly appreciated...frm1.picbox.refresh