Tooltip buttons with images and text, now text overlapping image after upgrade

2 posts, 0 answers
  1. Bex
    Bex avatar
    53 posts
    Member since:
    Jul 2011

    Posted 23 Jul 2009 Link to this post

    Hi

    We have a tool strip with 4 buttons on all with an image and text, after we upgraded to the new version of the win controls a while a go 3 of the buttons started displaying incorrectly. The text is slightly overlapping the image.
    For some reason the remaining button is fine.

    Do you have any idea why it would do this, I have tried changing all the alignment and position settings but I cant get them to sit side by side properly?

    Thanks

    Bex
  2. Bex
    Bex avatar
    53 posts
    Member since:
    Jul 2011

    Posted 23 Jul 2009 Link to this post

    I have managed to sort it..
    I removed  this line

    ((Telerik.WinControls.Primitives.TextPrimitive)(this.ButtonPrint.GetChildAt(1).GetChildAt(1).GetChildAt(1).GetChildAt(1))).Padding = ((System.Windows.Forms.Padding)(resources.GetObject("resource.Padding")));

    from the designer file

    and re-added the padding in design view and its all ok now
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top