ActiveReports 15 .NET Edition
GrapeCity.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Designer Class / CreateToolStrips Method
The ToolStrip or ToolStripContainer control in which to create the ToolStrips.
Example

In This Topic
    CreateToolStrips Method
    In This Topic
    Creates ActiveReports ToolStrips in a ToolStrip or ToolStripContainer control.
    Syntax
    'Declaration
     
    Public Function CreateToolStrips( _
       ByVal ParamArray strips() As DesignerToolStrips _
    ) As ToolStrip()
    public ToolStrip[] CreateToolStrips( 
       params DesignerToolStrips[] strips
    )

    Parameters

    strips
    The ToolStrip or ToolStripContainer control in which to create the ToolStrips.
    Example
    Private Sub Designer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Designer1.Load
            Dim menuStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Menu)(0)
            Dim editStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Edit)(0)
            Dim formatStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Format)(0)
            Dim layoutStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Layout)(0)
            Dim reportStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Report)(0)
            Dim undoStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Undo)(0)
            Dim zoomStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Zoom)(0)
            Me.ToolStripContainer1.TopToolStripPanel.Join(menuStrip, 0)
            Me.ToolStripContainer1.TopToolStripPanel.Join(editStrip, 1)
            Me.ToolStripContainer1.TopToolStripPanel.Join(formatStrip, 2)
            Me.ToolStripContainer1.TopToolStripPanel.Join(layoutStrip, 3)
            Me.ToolStripContainer1.TopToolStripPanel.Join(reportStrip, 4)
            Me.ToolStripContainer1.TopToolStripPanel.Join(undoStrip, 5)
            Me.ToolStripContainer1.TopToolStripPanel.Join(zoomStrip, 6)
        End Sub
    private void designer1_Load(object sender, EventArgs e)
           {
               ToolStrip menuStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Menu)[0];
               ToolStrip editStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Edit)[0];
               ToolStrip formatStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Format)[0];
               ToolStrip layoutStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Layout)[0];
               ToolStrip reportStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Report)[0];
               ToolStrip undoStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Undo)[0];
               ToolStrip zoomStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Zoom)[0];
               this.toolStripContainer1.TopToolStripPanel.Join(menuStrip, 0);
               this.toolStripContainer1.TopToolStripPanel.Join(editStrip, 1);
               this.toolStripContainer1.TopToolStripPanel.Join(formatStrip, 2);
               this.toolStripContainer1.TopToolStripPanel.Join(layoutStrip, 3);
               this.toolStripContainer1.TopToolStripPanel.Join(reportStrip, 4);
               this.toolStripContainer1.TopToolStripPanel.Join(undoStrip, 5);
               this.toolStripContainer1.TopToolStripPanel.Join(zoomStrip, 6);
           }
    See Also