Hi,
I have a Windows Forms application that uses a UltraTextEditor. But it would have a funny behavior on Windows 7, every time the text box has the focus, the font would change. How could I eliminate this behavior.
Thanks.
I don't see any reason why the font would change, unless something in your code is doing that. What exactly is it changing to?
hi,
Thanks for a quick reply. I don't have anything on my code. We've replicated this by just placing a 2 or more UltraTextEditor controls on the Form, then type anything on each control. After that, click on the textboxes. The font of the text on the controls would somehow change.
Please note this only happens on Window 7 OS and our version of the Control is Infragistics.Win.UltraWinEditors.v5.3
Thanks
I'm still not clear on exactly what is changing. Can you maybe post some screen shots?
How do you know it's only on Windows 7? What other operating systems have you tried?
It sounds like maybe you are encountering the difference between GDI and GDI+. If that's the case, then the spacing between characters will change when the control has or does not have the focus. But that's just a normal part of DotNet, it's not specific to Windows 7 or any operating system.
If that's the case, and you want a more consistent look, you can try setting AlwaysInEditMode to true on the controls. That way they will always use GDI and be consistent.
Again thanks for the reply. We've tested it with other Operating Systems and it's only happening in Windows 7.
But any way, I think it's not actually the font that changed, it's the spacing. And setting the AlwaysInEditMode to True fixed the unwanted behavior.
This was happening for me too. Using an UltraTextEditor with the DisplayStyle set to Office 2007. I'm running Windows XP. It's happening on my development machine, so it can't be a missing font issue.
Anyway, setting the AlwaysInEditMode property to TRUE fixed the issue for me as well, so many thanks for the solution.
My guess is that this is happening on some machines and not others because the font you are using may not be installed on some of the machines. But I'm pretty sure the issue is not Operating System-specific.
Glad you got it working, though. :)