[Mono-winforms-list] Shadowed window setting ShowInTaskbar

Josh TwoOneSix at thatclothingco.com
Wed Apr 16 10:39:57 EDT 2008


Under Linux running mono 1.9_5 when I set ShowInTaskbar = False I get a
shadowed window that just hangs around in the background. The option works
(i.e. it's correctly removed from the Taskbar) but leaves that annoying
window painted on the screen. I should also note that none of my sub-windows
create this shadow, only the main window. Also, this ONLY seems to be
happening under the LINUX version of Mono. I tested under Windows and I do
not have the same issues. Any ideas? Is this more a dev-list question?

Here is a screenshot:
http://www.thatclothingco.com/images/ShowInTaskBarFalse.png
Here is the error that's produced when I close the form:
X11 Error encountered:
  Error: BadWindow (invalid Window parameter)
  Request:     12 (0)
  Resource ID: 0x520000F
  Serial:      303
  Hwnd:        Hwnd, Mapped:False ClientWindow:0x520000F,
WholeWindow:0x520000E, Zombie=True, Parent:[<null>]
  Control:     TestMono.Form1, Text: Form1   at
System.Environment.get_StackTrace()
   at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display,
XErrorEvent ByRef error_event)
   at System.Windows.Forms.XplatUIX11.HandleError(IntPtr , XErrorEvent ByRef
)
   at System.Windows.Forms.XplatUIX11.XGetWindowProperty(IntPtr , IntPtr ,
IntPtr , IntPtr , IntPtr , Boolean , IntPtr , IntPtr ByRef , Int32 ByRef ,
IntPtr ByRef , IntPtr ByRef , IntPtr ByRef )
   at System.Windows.Forms.XplatUIX11.XGetWindowProperty(IntPtr , IntPtr ,
IntPtr , IntPtr , IntPtr , Boolean , IntPtr , IntPtr ByRef , Int32 ByRef ,
IntPtr ByRef , IntPtr ByRef , IntPtr ByRef )
   at System.Windows.Forms.XplatUIX11.UpdateWindowState(IntPtr handle)
   at System.Windows.Forms.XplatUIX11.GetWindowState(IntPtr handle)
   at System.Windows.Forms.XplatUIX11.SetWMStyles(System.Windows.Forms.Hwnd
hwnd, System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.XplatUIX11.SetWindowStyle(IntPtr handle,
System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.XplatUI.SetWindowStyle(IntPtr handle,
System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.Control.UpdateStyles()
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Form.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.XplatUIX11.GetMessage(System.Object queue_id, MSG
ByRef msg, IntPtr handle, Int32 wFilterMin, Int32 wFilterMax)
   at System.Windows.Forms.XplatUI.GetMessage(System.Object queue_id, MSG
ByRef msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax)
   at System.Windows.Forms.Application.RunLoop(Boolean Modal,
System.Windows.Forms.ApplicationContext context)
   at
System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext
context)
   at System.Windows.Forms.Application.Run(System.Windows.Forms.Form
mainForm)
   at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[]
commandLine)
   at TestMono.My.MyApplication.Main(System.String[] Args)

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20080416/bc6a5e56/attachment.html 


More information about the Mono-winforms-list mailing list