Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
FormattedTextEditor Custom Font Dialog
posted

With the FormattedTextEditor, is there a way to hide some controls in the FontDialog?  I would not want the users to change the Text and Background colors.

If not, what would you suggest?  Showing the Windows Font dialog?

 

Thanks

  • 45
    Offline posted

    //This Code worked for me.

    private void HideFontDialogBackColor(Infragistics.Win.SupportDialogs.FormattedTextEditor.FontDialog fontDialog)
    {
    //these control are in "ugbEdit">"pnlEdit">"pnlColors"
    Control cpbc = fontDialog.Controls.Find("cpBackColor", true).FirstOrDefault();
    Control lblbc = fontDialog.Controls.Find("lblBackColor", true).FirstOrDefault();
    Control btnrstbc = fontDialog.Controls.Find("btnResetFontBackColor", true).FirstOrDefault();
    cpbc.Visible = false;
    lblbc.Visible = false;
    btnrstbc.Visible = false;
    }

  • 71886
    Offline posted

    Hello,

    After taking some time researching this I came to the conclusion that what you could do is to create your own form and show it as a dialog containing the necessary controls.

    Please do not hesitate to contact us if you need any additional assistance.