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.
"Sameh Ahmed" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
|