Share via


ControlNotFoundException Class (2007 System)

Represents errors that occur when a control is not found in the Microsoft.Vbe.Interop.Forms.UserForm of an imported form region.

Namespace:  Microsoft.Office.Tools.Outlook
Assembly:  Microsoft.Office.Tools.Outlook.v9.0 (in Microsoft.Office.Tools.Outlook.v9.0.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class ControlNotFoundException _
    Inherits Exception
'Usage
Dim instance As ControlNotFoundException
[SerializableAttribute]
public sealed class ControlNotFoundException : Exception
[SerializableAttribute]
public ref class ControlNotFoundException sealed : public Exception
public final class ControlNotFoundException extends Exception

Remarks

If you import a form region that was designed in Microsoft Office Outlook, this exception can occur if you remove or modify the names of the controls that are described in the imported Outlook Form Storage (*.ofs) file.

You can add, remove, or change controls on an imported form region by using the designer in Outlook. Before you do this, back up any code that you added to the form region code file. Then, open the .ofs file in Outlook, modify the form region, and then save the changes. Use the New Outlook Form Region wizard to import the modified .ofs file. You can then paste your code into the new form region code file.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.Office.Tools.Outlook.ControlNotFoundException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ControlNotFoundException Members

Microsoft.Office.Tools.Outlook Namespace