ComponentFactory / Krypton

Krypton WinForms components for .NET
BSD 3-Clause "New" or "Revised" License
1.88k stars 691 forks source link

Changing default Font Property of KryptonTextBox has no any effects (bug) #251

Open jank9201 opened 1 year ago

jank9201 commented 1 year ago

KyprotonTextBox.cs; In the KyprotonTextBox method of "protected override void OnNeedPaint(object sender, NeedLayoutEventArgs e)" the following piece of the code Font font = triple.PaletteContent.GetContentShortTextFont(state); if ((_textBox.Handle != IntPtr.Zero) && !_textBox.Font.Equals(font)) _textBox.Font = font; //change the font set by user cause the the font set by user not to effect