Spread Windows Forms 18
Spread Windows Forms 18 Product Documentation / Spread Designer Guide / Introduction / Using Spread Designer in Runtime
In This Topic
    Using Spread Designer in Runtime
    In This Topic

    Spread for Winforms supports using the Spread Designer with code by following the steps below.

    1. Drag and drop the FpSpreadDesigner component in the form in addition to the FpSpread component.

      Observe that both the components are added as tray icons in the design-time form.

    2. Launch Spread Designer dialogs using the ShowDialog method provided in the FpSpreadDesigner Class.
      C#
      Copy Code
      private void Form1_Load(object sender, EventArgs e)
      {
          fpSpreadDesigner1.ShowDialog(fpSpread1);
      }
      
      Visual Basic
      Copy Code
      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          FpSpreadDesigner1.ShowDialog(FpSpread1)
      End Sub