We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error

Version Syncfusion 4.1

I occasionally get this error in my windows form applications. I can't figure out why i get this error.From the stack trace, I beleive it may be from Syncfusion.Windows.Forms.Tools.ComboDropDown
Am I doing anything wrong? Can you please help me figure out this issue.

Thanks in advance

Shankar

Exception :System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.GetHdc()
at System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(Graphics g, ApplyGraphicsProperties properties)
at System.Windows.Forms.ControlPaint.DrawFrameControl(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, Int32 kind, Int32 state, Color foreColor, Color backColor)
at System.Windows.Forms.ControlPaint.DrawComboButton(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, ButtonState state)
at System.Windows.Forms.ControlPaint.DrawComboButton(Graphics graphics, Rectangle rectangle, ButtonState state)
at Syncfusion.Windows.Forms.Tools.DropDownButton.OnPaint(Graphics g)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.DrawDropDownPortion(PaintEventArgs e)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.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)

2 Replies

SR Shankar Ramasubramanian March 12, 2007 01:33 PM UTC

Can you please help me with this. Thanks
Shankar


>Version Syncfusion 4.1

I occasionally get this error in my windows form applications. I can't figure out why i get this error.From the stack trace, I beleive it may be from Syncfusion.Windows.Forms.Tools.ComboDropDown
Am I doing anything wrong? Can you please help me figure out this issue.

Thanks in advance

Shankar

Exception :System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.GetHdc()
at System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(Graphics g, ApplyGraphicsProperties properties)
at System.Windows.Forms.ControlPaint.DrawFrameControl(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, Int32 kind, Int32 state, Color foreColor, Color backColor)
at System.Windows.Forms.ControlPaint.DrawComboButton(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, ButtonState state)
at System.Windows.Forms.ControlPaint.DrawComboButton(Graphics graphics, Rectangle rectangle, ButtonState state)
at Syncfusion.Windows.Forms.Tools.DropDownButton.OnPaint(Graphics g)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.DrawDropDownPortion(PaintEventArgs e)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.Tools.ComboDropDown.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)


PJ Poly J Syncfusion Team March 14, 2007 03:45 AM UTC

Hi Shankar,

Sorry for the delay in updating you.
I am not able to reproduce the issue. I have checked in the source code with the stack trace you have provided. Could you please check the control showing in the Popupcontrol of combodropdown. If that is not the problem then please provide us more details for reproducing this issue.

Thanks for your interest in Syncfusion Products.

Best Regards,
Poly

Loader.
Live Chat Icon For mobile
Up arrow icon