Question: Lets say - I am Developing Project A and already have an project B's output as an exe file.
I am using B's output (Say - B.exe) as a reference in A project.

I need to use B.exe's forms directly in A.

Example: 

```
Namespace A
{
    B.Reports.TaxReport reportForm = new B.Reports.TaxReport();
    reportForm.ShowDialog();
}

```

The problem here is, the form loads correctly inside the new Exe with all the database fetching. But if the user does any Operation such as Add / Update / Data fetch, the current exe throws an exception: 'Object reference not set to an instance of an Object'.

How can this problem be tackled? If no, is there any workaround that can help me in opening the forms from a reference EXE into the current under development project?

Answer: 
Hope this helps:

```
<?php include("includes/ui_header.php"); ?>

My page content between header and footer

<?php include("includes/ui_footer.php"); ?>

```
You can probably save this as a function and call that function wherever you want to display.