• Changing the Texts in the Customize Dialogs Form of Janus CommandManager [Janus UI and Ribbon Controls v3.5 for .NET]

    Change the default texts used in the customize dialog of the Janus CommandManager.

    In the ShowingCustomizeDialog event of the UICommandManager assign the dialog to the inherited form



    In VB:



    Private Sub UICommandManager1_ShowingCustomizeDialog(ByVal sender As Object, ByVal e As Janus.Windows.UI.CommandBars.CancelDialogEventArgs) Handles UICommandManager1.ShowingCustomizeDialog

    Select Case e.DialogType

    Case Janus.Windows.UI.CommandBars.DialogType.Customize

    Dim form As CustomizeForm = New CustomizeForm()

    e.Dialog = form

    End Select

    End Sub





    In C#:



    private void uiCommandManager1_ShowingCustomizeDialog(object sender, Janus.Windows.UI.CommandBars.CancelDialogEventArgs e)

    {

    switch (e.DialogType)

    {

    case Janus.Windows.UI.CommandBars.DialogType.Customize:

    CustomizeForm customizeForm = new CustomizeForm();

    e.Dialog = customizeForm;

    break;

    }

    }

    Source Of Information : Janus v3.5 Help Files for VS 2008


0 comments:

Leave a Reply