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
//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; }
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.