J
JimC
On my main form in a C# program, I create an instance of another form that
contains a ListView control, in the usual way, that is:
public class frmMain : System.Windows.Forms.Form
{
// [...]
InfoForm myInfoForm = new InfoForm( );
myInfoForm.Show ( );
// [...]
}
When I click on the ListView on myInfoForm, I want to
be able to access two or three controls on the main form which
have public access (or can be changed easily to have public
access).
Seems like a simple enough requirement, similar to everything else
I do in C#, but I can't quite make this happen. Anyone know how?
Jim
contains a ListView control, in the usual way, that is:
public class frmMain : System.Windows.Forms.Form
{
// [...]
InfoForm myInfoForm = new InfoForm( );
myInfoForm.Show ( );
// [...]
}
When I click on the ListView on myInfoForm, I want to
be able to access two or three controls on the main form which
have public access (or can be changed easily to have public
access).
Seems like a simple enough requirement, similar to everything else
I do in C#, but I can't quite make this happen. Anyone know how?
Jim