Imports Infragistics.Win.UltraWinToolbars Private Sub TextBox1_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseUp ' If the user selected text with the mouse, show the mini toolbar ' at an offset from the cursor location If (Me.TextBox1.SelectedText.Length > 0) Then Me.UltraToolbarsManager1.MiniToolbar.Show() End If End Sub
using System.Windows.Forms; using Infragistics.Win.UltraWinToolbars; private void textBox1_MouseUp( object sender, MouseEventArgs e ) { // If the user selected text with the mouse, show the mini toolbar // at an offset from the cursor location if ( this.textBox1.SelectedText.Length > 0 ) this.ultraToolbarsManager1.MiniToolbar.Show(); }