StrataFrame Forum

What next?

http://forum.strataframe.net/Topic2010.aspx

By Daniel Essin - 7/30/2006

I invoked this:

this.browseDialogUnenrolled.ShowDialog();

and got this:

{"Visual Styles-related operation resulted in an error because no visual style is currently active."}



What does it mean and how do I fix it?
By Daniel Essin - 7/31/2006

InvalidOperationException

   Visual Styles-related operation resulted in an error because no visual style is currently active.



Source : System.Windows.Forms



Stack Trace:

at System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsCombinationDefined(String className, Int32 part)

at System.Windows.Forms.VisualStyles.VisualStyleRenderer..ctor(String className, Int32 part, Int32 state)

at System.Windows.Forms.ScrollBarRenderer.InitializeRenderer(VisualStyleElement element, Int32 state)

at System.Windows.Forms.ScrollBarRenderer.GetSizeBoxSize(Graphics g, ScrollBarState state)

at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogWindow.PositionControls(Control& ParentControl)

at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogWindow.AddSearchFields()

at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogWindow..ctor(BrowseDialog BrowseDialogSettings, Boolean PopulateOnShow)

at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog(Boolean PopulateOnShow)

at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog()

at DM.App.MainForm.ToolStripMenuItem2_Click(Object sender, EventArgs e) in E:\_work.SF\DM\DMApplication\MainForm.cs:line 52

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
By Trent L. Taylor - 7/31/2006

Daniel,

We cannot reproduce this problem and are out of ideas as to what is causing this error.  We have trying stopping the Themes service, played with every VisualStyle setting in Visual Studio.  So we know it has to be coming from setting on your machine.  So here are some questions:

  1. Do you have Windows XP Pro installed with Service Pack 2?
  2. Can you reproduce this behavior on another computer?
  3. Do you have any beta video drivers installed?
  4. Do you have a graphics tool running on your machine (i.e. UltraMon)?
  5. Does this fail if you turn on Windows Themes?
  6. Does this fail on both a laptop and desktop computer?

Any other options you can give us would be helpful.  There is nothing we can do until we can reproduce this error.  It is our policy to reproduce an error rather than to attempt to blindly create a fix.

By Daniel Essin - 7/31/2006

1. Do you have Windows XP Pro installed with Service Pack 2?

yes

2. Can you reproduce this behavior on another computer?

I don't know

3. Do you have any beta video drivers installed?

no

4. Do you have a graphics tool running on your machine (i.e. UltraMon)?

no

5. Does this fail if you turn on Windows Themes?

I don't know how to turn on themes. I don't use or recommend them.

6. Does this fail on both a laptop and desktop computer?

Don't know.


By Daniel Essin - 7/31/2006

Same problem on other laptop.
By Daniel Essin - 7/31/2006

In xp I'm not sure that you can turn off themes. It seems to think that my "Windows Classic" is a theme, so maybe themes are enabled.