Error in System.Windows.Forms.Form.UpdateLayered() 
Author Message
 Error in System.Windows.Forms.Form.UpdateLayered()

I've had this reported by the same user a couple of times now, but I can't
figure out what is going on, and it's only been reported on that single
user's machine.  Mostly randomly, I get an error like this:

An unhandled exception has occurred in your application.  If you click
Continue, the application will ignore this error and attempt to continue.
If you click Quit, the application will be shut down immediately.

The parameter is incorrect.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: The parameter is incorrect
   at System.Windows.Forms.Form.UpdateLayered()
   at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmCreate(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

Any idea what could be causing this error?  It always seems to occur when
the application is being shut down.  It only happens on this one machine
(running Windows 2000 SP2), but not on another of our other Win2k SP2 boxes.

Ryan Gregg

Sat, 05 Feb 2005 02:34:32 GMT  
 [ 1 post ] 

 Relevant Pages 

1. System.Windows.Forms.RichTextBox.SelectionFont.Size

2. System.Windows.Forms.RichTextBox.SelectionFont.Size

3. Inherits System.Windows.Forms.Control...

4. howto Inherits System.Windows.Forms.TextBoxbase

5. System.Windows.Forms.Application.Exit()

6. Unhandled exception in (in my main form) - argh

7. VB.NET - Subclassing System.Windows.Forms.Form?

8. Tools/Options/Calculation/Updating task status updates resource status

9. sending windows.document.form.item.value properties into functions

10. 'windows.system.forms.notifyicon' cannot be converted to 'windows.system.forms.control'


12. not found


Powered by phpBB® Forum Software