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
3045
Ribbon is blank when setting WindowState to Normal under Windows 7 Basic
posted

When the active OS theme is Windows 7 Basic, the Ribbon displays blank when restoring a minimized window programmatically.

Here is the code snippet. Form2 is just another form with UltraToolbarsManager.

public partial class Form1 : Form
{
Form2 frm = new Form2();

public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath + @"..\..\..\Office2007Black.isl");
this.appStylistRuntime1.LoadFromStyleManager();
}

private void ultraToolbarsManager1_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
{
switch(e.Tool.Key)
{
case "ButtonTool1":
if (frm == null || frm.IsDisposed)
frm = new Form2();

frm.Show();
break;
default:
frm.WindowState = FormWindowState.Normal;
break;

}
}
}

IG Version: 14.1.20141.2035

Aside from changing the OS theme to Classic or Aero, is there some other workaround?