Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Add Items to the Report Designer's Standard Toolbar

This tutorial illustrates how add a new button to a Report Designer’s standard toolbar.

Tip

See the following tutorial to learn how to add a Report Designer to a WinForms application: Create a Custom End-User Report Designer.

Do the following to customize a standard designer form’s toolbar:

  1. Click the [Add] button in the Design Bar Manager’s menu and add a new menu item to it.

    HowTo - CustomUserDesignerForm2

    Change the item’s caption to Help and double-click it. Click [Add] and create a new button. Change its caption to About.

    HowTo - CustomUserDesignerForm3

  2. Handle the newly added menu item’s BarManager.ItemClick event:

    using System.Windows.Forms;
    // ...
    
    private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
        MessageBox.Show("This is a standard Report Designer Form.", "About");
    }
    

The following image illustrates the result:

HowTo - CustomUserDesignerForm4