I have a button on form1 which opens form2.

The functionality of form2 is reliant upon some of Office being installed. Basicall the Document Imaguing tools of Office.

If these are not present then the InitializeComponent() method of the forms constructor throws an exception :
Code:
[System.Runtime.InteropServices.COMException] = {"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"}
I can obviously trap this with a try catch in the constructor but the problem is I cannot dispose of the problem.


How can I shut this "form2" down and clean up ?
The Initialise() hasd not completed so I have this half arsed mess.


Thanks In Advance