FormBorderStyle = None

8 posts, 0 answers
  1. Andrés David Santacoloma Isaza
    Andrés David Santacoloma Isaza avatar
    51 posts
    Member since:
    Mar 2010

    Posted 21 Sep 2010 Link to this post

    Hello:
    I have a problem when i set the property FormBorderStile = None.
    The problem is because the size of the form change.
    For example i set the size on (400,300), save and close the form; when i open the form, its size have been changed.
    what's the solution for it?

    thanks.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Sep 2010 Link to this post

    Hi, 

    This doesn't seem to happen. 
    If you have a form that has a FormBorder style of FixedSingle and a size of 400x300 and change the form border style to None, then yes, the size changes because you are taking away the border. But if you then set the size again in the designer to 400x300 then it always stays the same. 

    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Andrés David Santacoloma Isaza
    Andrés David Santacoloma Isaza avatar
    51 posts
    Member since:
    Mar 2010

    Posted 23 Sep 2010 Link to this post

    Hi Richard:
    I has changed the size again, but every time I close my form or my project, it size has changed and always increase.
    I don't know the solution
    Thanks
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Sep 2010 Link to this post

    Are you perhaps inheriting from a Base RadForm that has a default, readonly size property? 
    Seems to work fine in the latest version of the controls for me. 
  6. Andrés David Santacoloma Isaza
    Andrés David Santacoloma Isaza avatar
    51 posts
    Member since:
    Mar 2010

    Posted 23 Sep 2010 Link to this post

    Hello:
    I have Telerik RadControls for Winforms Q2 2009 SP1 Version 9.2.1
    What's the latest version?
  7. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 23 Sep 2010 Link to this post

    Latest is 2010 Q2 914
    I can't replicate what happens on yours (Im using the latest version)
    Richard
  8. Denis Cilliers
    Denis Cilliers avatar
    62 posts
    Member since:
    Jan 2004

    Posted 09 Oct 2012 Link to this post

    The problem arises due to the order of the items in the designer file

    if you swap the order the problem will go away
    'Incorrect order this will cause the form to grow each time you open it by the size of the header
     
    Me.ClientSize = New System.Drawing.Size(750, 450)
    Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None

    make this simple change in the designer

    'Correct order
    Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
      
    'Placed before the the size of the form
     Me.ClientSize = New System.Drawing.Size(750, 450)

    There is one catch, as the form designer is rebuilt each time you add a control to the form, so you need to make this change each time.

    I will log this with Telerik as I think it could be called a bug
  9. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 12 Oct 2012 Link to this post

    We are aware of this issue. Here is a link to it in our Public Issue Tracking System. Feel free to add your vote for it there in order to increase its priority amongst the other items. 

    All the best,
    Stefan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready