Link to home
Start Free TrialLog in
Avatar of Thor Vestaberg
Thor Vestaberg

asked on

Form access error when try to use a Form from Project1 in Project2

I have two project in same solution, where I try to use a form from the other project in this project.

I have added Project1 as en reference in Project2 (Reference to the exe file - Correct? )

And then I try this in a mdicontainer form i Project2:

        Dim ReportFrm As New Project1.Form_report

        ReportFrm.MdiParent = Me
        ReportFrm.WindowState = FormWindowState.Maximized

Then I get this error when try "ReportFrm.Show()" : exception: can't access removed object

What to do ?
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thor Vestaberg
Thor Vestaberg


Thanks :-)

So easy, but then again so difficult when your blind :-D
YOu are welcome sometimes we need another pair of eyes that are tired or stressed out