﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Visual style error</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 05 Apr 2026 14:05:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Visual style error</title><link>http://forum.strataframe.net/FindPost9744.aspx</link><description>Hi,&lt;br&gt;
My customer hit error while click on browse button. However, I can't reproduce in my machine and also my dealer machine.&lt;br&gt;
&lt;br&gt;
Any ideas?&lt;br&gt;
[codesnippet]&lt;br&gt;
InvalidOperationException&lt;br&gt;
	Visual Styles-related operation resulted in an error because no visual &lt;br&gt;
style is currently active.&lt;br&gt;
&lt;br&gt;
Source     : System.Windows.Forms&lt;br&gt;
&lt;br&gt;
Stack Trace:&lt;br&gt;
   at &lt;br&gt;
System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsCombinationDefined(String &lt;br&gt;
className, Int32 part)&lt;br&gt;
   at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor(String &lt;br&gt;
className, Int32 part, Int32 state)&lt;br&gt;
   at &lt;br&gt;
System.Windows.Forms.ScrollBarRenderer.InitializeRenderer(VisualStyleElement &lt;br&gt;
element, Int32 state)&lt;br&gt;
   at System.Windows.Forms.ScrollBarRenderer.GetSizeBoxSize(Graphics g, &lt;br&gt;
ScrollBarState state)&lt;br&gt;
   at &lt;br&gt;
MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow.PositionControls(Control&amp; &lt;br&gt;
ParentControl)&lt;br&gt;
   at &lt;br&gt;
MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow.AddSearchFields()&lt;br&gt;
   at &lt;br&gt;
MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow..ctor(BrowseDialog &lt;br&gt;
BrowseDialogSettings, Boolean PopulateOnShow)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog(Boolean &lt;br&gt;
PopulateOnShow)&lt;br&gt;
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog()&lt;br&gt;
   at &lt;br&gt;
MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdBrowse_Click(Object &lt;br&gt;
sender, EventArgs e)&lt;br&gt;
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)&lt;br&gt;
   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)&lt;br&gt;
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, &lt;br&gt;
ToolStripItemEventType met)&lt;br&gt;
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, &lt;br&gt;
ToolStripItemEventType met)&lt;br&gt;
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)&lt;br&gt;
   at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons &lt;br&gt;
button, Int32 clicks)&lt;br&gt;
   at System.Windows.Forms.Control.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, &lt;br&gt;
IntPtr wparam, IntPtr lparam)&lt;br&gt;
[/codesnippet]</description><pubDate>Fri, 22 Jun 2007 13:00:22 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Visual style error</title><link>http://forum.strataframe.net/FindPost9750.aspx</link><description>There is a known issue regarding themes and .NET controls as it relates to the DateTimePicker and Visual Styles.&amp;nbsp; Try turning on the Windows Themes service and you may try choosing a theme other than Classic to see if the error goes away.&amp;nbsp; You can then work your way backwards by going back to Classic but leaving on the Themes service and see if the error comes back.&amp;nbsp; This is the first thing I would try.</description><pubDate>Fri, 22 Jun 2007 13:00:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>