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