ControlNotFoundException Class
Represents errors that occur when a control is not found in the Microsoft.Vbe.Interop.Forms.UserForm of an imported form region.
Assembly: Microsoft.Office.Tools.v4.0.Framework (in Microsoft.Office.Tools.v4.0.Framework.dll)
System::Exception
Microsoft.VisualStudio.Tools.Applications.Runtime::RuntimeException
Microsoft.Office.Tools.Outlook::ControlNotFoundException
| Name | Description | |
|---|---|---|
![]() | ControlNotFoundException() | Initializes a new instance of the ControlNotFoundException class. |
![]() | ControlNotFoundException(Exception^) | |
![]() | ControlNotFoundException(String^) | Initializes a new instance of the ControlNotFoundException class by using the name of a control that is not found in the Microsoft.Vbe.Interop.Forms.UserForm of an imported form region. |
![]() | ControlNotFoundException(String^, Exception^) |
| Name | Description | |
|---|---|---|
![]() | Data | (Inherited from Exception.) |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | Identifier | Gets the name of a control that is not found in the Microsoft.Vbe.Interop.Forms.UserForm of an imported form region. |
![]() | InnerException | (Inherited from Exception.) |
![]() | Message | (Inherited from Exception.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetBaseException() | (Inherited from Exception.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | |
![]() | GetType() | (Inherited from Exception.) |
![]() | ToString() | (Inherited from Exception.) |
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.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

