Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3045
Is there a trick so the display and edit mode font look the same?
posted

Is there a property that I can set so the textbox doesn't shift that much when entering edit mode? It's not as annoying as when you only have a simple textbox, but it's very noticeable when you have a multiline display. 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    Just FYI - the reason this happens is because of the differences between GDI and GDI+ drawing. When the textbox is in edit mode, it uses the inbox DotNet TextBox control, which is basically a wrapper around the Windows TextBox and therefore uses GDI. When it's not in edit mode, we handle the drawing using GDI+. So setting the TextRenderingMode to GDI will provide a consistent experience for text drawing.

    You could also set:

    Infragistics.Win.DrawUtility.UseGDIPlusTextRendering to false and this would affect all of the Infragistics controls in your application - as opposed to setting the TextRenderingMode on each control individually.

Children
No Data