You must Sign In to post a response.
  • Category: .NET

    Windows form controls gets cropped after installing in lower resolution pc ?

    I developed one application in screen resolution of (1366 x 768) . but when i install this application in lower resolution computer say (1280 x 1024) , and starts my application buttons and textboxes gets cropped from end and in another form datagridview shows columns repeatedly whereas they are bound only once and appearing once in my pc , why it happend ? please suggest me ways to get rid of this.
  • #763885
    Hai Priyanka,
    The issue is because when you have the windows application with the fixed controls height and width, they will get disturbed when opening in other resolution windows.
    So either you need to make the controls height and width dynamically or it should be in the same resolution.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • #764086
    Hi Priyanka,

    Place all your form controls inside a TableLayoutPanel and arrange them accordingly as per desired order and check running your application on any of the windows resolution.

    If problem still exist, you can do following:

    1) Inside from's constructor add below line

    this.doublebuffered = true;

    2) Copy this method inside your from

    protected override CreateParams CreateParams
    CreateParams cp = base.CreateParams;
    cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
    return cp;

    Hope this will help you.

    Shashikant Gurav[Programmer II]

Sign In to post your comments