ControlNotFoundException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents errors that occur when a control is not found in the Microsoft.Vbe.Interop.Forms.UserForm of an imported form region.
public ref class ControlNotFoundException sealed : Microsoft::VisualStudio::Tools::Applications::Runtime::RuntimeException
[System.Diagnostics.DebuggerNonUserCode]
[System.Serializable]
public sealed class ControlNotFoundException : Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
[<System.Diagnostics.DebuggerNonUserCode>]
[<System.Serializable>]
type ControlNotFoundException = class
inherit RuntimeException
Public NotInheritable Class ControlNotFoundException
Inherits RuntimeException
- Inheritance
- Attributes
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.
Constructors
ControlNotFoundException() |
Initializes a new instance of the ControlNotFoundException class. |
ControlNotFoundException(Exception) | |
ControlNotFoundException(String, 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. |
Properties
Identifier |
Gets the name of a control that is not found in the Microsoft.Vbe.Interop.Forms.UserForm of an imported form region. |
Methods
GetObjectData(SerializationInfo, StreamingContext) |