Problem With ToolBars
-
Hello i have a toolbar in my application and i have visual styles enabled. when i enabled visual styles it wont show the icons in my toolbar otherwise it when visual styles arent enabled it shows the icons. Is there a way to have visual styles enabled and to show my toolbar icons Thanks
-
Hello i have a toolbar in my application and i have visual styles enabled. when i enabled visual styles it wont show the icons in my toolbar otherwise it when visual styles arent enabled it shows the icons. Is there a way to have visual styles enabled and to show my toolbar icons Thanks
This is caused by a bug in the .NET framework. You can work around it by calling Application.DoEvents() after enabling visual styles like this...
static void Main()
{
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new MyForm());
}-- modified at 23:35 Tuesday 14th February, 2006