static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Handle the static FilterComponentProperties event to filter the Property Grid. XtraReport.FilterComponentProperties += XtraReport_FilterComponentProperties; // For the XRLabel control, hide the Background Color and Tag properties from the Expressions tab. ExpressionBindingDescriptor.HidePropertyDescriptions(typeof(XRLabel), "BackColor", "Tag"); Application.Run(new Form1()); }
protected override void OnStartup(StartupEventArgs e) { // For XRLabel controls, hide the Background Color and Tag properties from the Expressions tab. ExpressionBindingDescriptor.HidePropertyDescriptions(typeof(XRLabel), "BackColor", "Tag"); base.OnStartup(e); }