Calling a control on another form

S

Sameh Ahmed

Hello there
is there a way to call a control on a form with that form being initiated as
a public variable?
here's the situation:
I have a form(form2), that I call as a new variable from form1.
I need form2 to be able to access a listview control on form1 without the
need to declare form1 at the load of the project, because I will need to
show lots of this form when the user needs to, to avoid "cannot access a
disposed object" errors.
is there a way like using me.parent for example to be able to access form1 ?
Regards
Sameh
 
S

Sameh Ahmed

Got it
when I call form2, I add me as the owner of it
so when I need to call a control on form1 from form2 I call the owner.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top