)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show MiniToolBar on any control?

Platform: WinForms |
Control: MiniToolBar |
Published Date: November 26, 2015 |
Last Revised Date: January 6, 2020

MiniToolBar

You can show the MiniToolBar on any control by using the function named “Show” in MiniToolBar. The function contains the following arguments.

1)Control: It helps to show the MiniToolBar on required control.

2)Position: It helps to specify the location of the MiniToolBar control.

The following code example demonstrates the same.

C#

//To show the MiniToolBar in GridControl with specified location.
void gridControl1_MouseUp(object sender, MouseEventArgs e)
{
    this.miniToolBar1.Show(this.gridControl1,     this.gridControl1.PointToClient(Control.MousePosition));
}

VB

'To show the MiniToolBar in GridControl with specified location.
Private Sub gridControl1_MouseUp(ByVal sender As Object, ByVal e As MouseEventArgs)
    Me.miniToolBar1.Show(Me.gridControl1, Me.gridControl1.PointToClient(Control.MousePosition))
End Sub

 

MiniToolbar shows on GridControl

Figure 1. MiniToolBar shows on GridControl

Samples:

C#: MiniToolBar_C#_Sample

VB: MiniToolBar_VB_Sample

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon