Error message pop up when double click on textbox.

Description

Error occurs when I double click on the text box that was placed earlier. I was trying to change the text so I double click on it. I've placed 6 textboxes. The error occurs on 2 out of 6 textboxes.

Text box text is in purple color, I have 6 text box


When you double click on a text box, it should appear like this.


This text box has an error, notice the text font size is smaller when double click. It goes back to the correct size afterward. When I double click on this, the error message appeared. When I double click it again, error message no longer appeared.


This is the second text box with an error. Exactly the same condition as the first error.

The other 4 textbox doesn't have any error.

I cannot reproduce this error with different image/ different program instance. This error only occurs once

Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2019-02-08 15:22:37 +07:00
OS: unknown (x64) 10.0 build 17134 revision 0
GDI object count: 249
User object count: 135

Exception: System.ArgumentException
Message: Parameter is not valid.

Stack:
at System.Drawing.Font.ToLogFont(Object logFont, Graphics graphics)
at System.Drawing.Font.ToLogFont(Object logFont)
at System.Drawing.Font.ToHfont()
at System.Windows.Forms.Control.FontHandleWrapper..ctor(Font font)
at System.Windows.Forms.Control.get_FontHandle()
at System.Windows.Forms.Control.SetWindowFont()
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.TextBoxBase.OnHandleCreated(EventArgs e)
at System.Windows.Forms.TextBox.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TextBox.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Configuration dump:

Environment

Windows 10 Pro 1809 64bit

Attachments

4

Activity

Show:

Details

Assignee

Reporter

Affects versions

Priority

Created February 8, 2019 at 8:48 AM
Updated February 8, 2019 at 8:48 AM