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

Parents
No Data
Reply
  • 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;
    }

Children
No Data