Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / How to remove the white space at top of form

How to remove the white space at top of form

New Discussion
Minh Bùi Thanh
Minh Bùi Thanh asked on Sep 4, 2020 7:11 AM

Hi everybody,

I have problem when use infragistic and need to help.

I draw a form but when run it, it always have a whitespace at top of the form. Pls see at below image:

I set some attributes:

– formborderstyle = sizable

– control box = false

Please help me, thank you very much!

Let me know if you need more info.

Sign In to post a reply

Replies

  • 0
    Tihomir Tonev
    Tihomir Tonev answered on Aug 27, 2020 1:53 PM

    Hello,

    This looks like padding issue. Could you please provide steps how to reproduce this so we can see where it comes from?

    Looking forward to your reply.

    Sincerely,

    Tihomir Tonev
    Associate Software Developer
    Infragistics

    • 0
      Minh Bùi Thanh
      Minh Bùi Thanh answered on Aug 27, 2020 4:07 PM

      Hi Tihomir,

      I only create new form and set 

      – control box = false

      – formborderstyle = sizable

      and run it.

      I using infragistic version 16.1

      Thank you!

      • 0
        Tihomir Tonev
        Tihomir Tonev answered on Aug 28, 2020 8:57 AM

        Hello,

        Following the provided steps I am getting the following result:

        Code:

        public Form1()
                {
                    InitializeComponent();
                    this.ControlBox = false;
                    this.FormBorderStyle = FormBorderStyle.Sizable;
                }

        Can you download the latest version as trial – its free, and test it. Version 16.1 is no longer supported so if there is an issue with it, it will only get fixed for the latest releases.

        More information about the lifespan of our products can be found here:

        https://www.infragistics.com/support/product-lifecycle

        Looking forward to your reply.

        Sincerely,
        Tihomir Tonev
        Associate Software Developer
        Infragistics

      • 0
        Minh Bùi Thanh
        Minh Bùi Thanh answered on Sep 1, 2020 2:38 AM

        Dear Tihomir,

        I'm sorry but please set more a attribute: this.text = ""; => it will hide the title bar of the form.

        We also tried with the latest version but the issue is still happened.

        Thank you!

      • 0
        Tihomir Tonev
        Tihomir Tonev answered on Sep 1, 2020 2:12 PM

        Hello Minh,

        This is related to the form's borderstyle, and not to our set of controls.

        The simplest way to eliminate the white space would be to set the borderstyle to none:

        this.FormBorderStyle = FormBorderStyle.None;

        If you would like to customize if further, you can check MSDN resources on how to do that.

        Should you have further questions, please let me know.

        Sincerely,
        Tihomir Tonev
        Associate Software Developer
        Infragistics

      • 0
        Minh Bùi Thanh
        Minh Bùi Thanh answered on Sep 3, 2020 3:51 PM

        Thank you very much,

        But i tried to search about it and still can not resolve it now.

        Actually i want customize the top menu of my app look like visual studio 2019.

        It not have title bar and have a big logo at top left. See the below picture

        I customized it:

        Have other way to do it?

        Thank you!

      • 0
        Tihomir Tonev
        Tihomir Tonev answered on Sep 4, 2020 7:11 AM

        Hello Minh,

        You can try settting the FormBorderStyle FixedToolWindow or FixedSingle. For some reason Windows 10 is putting an unsightly bar at the top of the window outside of the client rectangle, which appears to be the grab area for resizing.

        This is not something we control, so I suggest checking on Microsoft forums how to style that area as you will find more comprehensive support on this matter there.

        Should you have any further questions, please let me know.

        Sincerely,
        Tihomir Tonev
        Associate Software Developer
        Infragistics

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Minh Bùi Thanh
Favorites
0
Replies
7
Created On
Sep 04, 2020
Last Post
5 years, 7 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Sep 4, 2020 7:11 AM

Last activity on

Feb 25, 2026 9:33 AM