Error on Handle creation

Topics related to the Krypton Toolkit.

Moderators: Phil Wright, Chris Porter

Error on Handle creation

Postby lordbarba » Fri Nov 11, 2011 11:11 pm

Hello Philip,
when i start my application sometimes appear this exception:

PArameter is not valid:
in System.Drawing.Font.ToLogFont(Object logFont, Graphics graphics)
in System.Drawing.Font.ToLogFont(Object logFont)
in System.Drawing.Font.ToHfont()
in System.Windows.Forms.Control.FontHandleWrapper..ctor(Font font)
in System.Windows.Forms.Control.get_FontHandle()
in System.Windows.Forms.Control.get_FontHandle()
in System.Windows.Forms.Control.get_FontHandle()
in System.Windows.Forms.Control.SetWindowFont()
in System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
in System.Windows.Forms.ListBox.OnHandleCreated(EventArgs e)
in System.Windows.Forms.Control.WmCreate(Message& m)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ListBox.WndProc(Message& m)
in ComponentFactory.Krypton.Toolkit.KryptonListBox.InternalListBox.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

This exception appears evry time i switch monitor resolution and also if i run my application from startup menu. If i wait sometimes everything works fine.
It seems that for somereason the KryptonListBox (but it appears also with other Krypton control) gives a wrong Font

Can you help me?
Thanks

Regards
Leonardo
lordbarba
 
Posts: 9
Joined: Tue Sep 09, 2008 7:32 pm

Return to Krypton Toolkit

Who is online

Users browsing this forum: No registered users and 1 guest