I'm getting an exception when using this method when the explorer shell is not running. The exception is a Win32Exception.
The Stacktrace is:
at OpenNETCF.Drawing.GraphicsEx.CopyFromScreen()
at OpenNETCF.Drawing.GraphicsEx.CopyFromScreen()
at MyNamespace.FormBase.Snapshot()
at MyNamespace.Button.OnPaintBackground()
at System.Windows.Forms.Control.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.WL.BeginPaint()
The call works great as long as the shell is running. Any suggestions? Is this expected?
Thanks,
note: this is the SDF Version 2.2