Hi there,
Just doing a little testing and if i set a control or variable , say on
form2 (DataGrid1), then i type:
Form1 f1 = new Form1();
f1.DataGrid1.datasource = ......
f1.Show()
---------------------------------
(in Form2) i set:
private DataGrid DataGrid1; -->public DataGrid DataGrid1;
but in order to access the datagrid from this form, i just changed it from
Private to Public. Is it okay to do it this way in order to access controls
on other forms?
Does anyone have a reason why not to do it like this:
thanks,
Paul