XLL+ Class Library (6.3)

ExcelForm Class

Used to link .NET forms to Excel.

class ExcelForm

Overview

The ExcelForm class establishes a link between the Excel application window and the .NET runtime Forms classes. In order to show a modal dialog during an add-in function (or during an add-in library event handler), you should construct a ExcelForm to use as the parent of your own window.

ExcelForm implements the IWin32Window interface, and can be used wherever .NET expects a window handle, as in the example C++/CLI code below.

System::Windows::Forms::MessageBox::Show(
    gcnew XllPlus::Forms::ExcelForm(), 
    "Hello from .NET");

Requirements

Header: xlpclrforms.h

See Also

ExcelForm Methods | xlpclrforms.h | WinWrapper class