Andrés David Santacoloma Isaza
Top achievements
Rank 1
Andrés David Santacoloma Isaza
asked on 21 Sep 2010, 03:07 PM
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.
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.
7 Answers, 1 is accepted
0
Richard Slade
Top achievements
Rank 2
answered on 23 Sep 2010, 09:57 AM
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
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
0
Andrés David Santacoloma Isaza
Top achievements
Rank 1
answered on 23 Sep 2010, 02:22 PM
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
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
0
Richard Slade
Top achievements
Rank 2
answered on 23 Sep 2010, 03:38 PM
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.
Seems to work fine in the latest version of the controls for me.
0
Andrés David Santacoloma Isaza
Top achievements
Rank 1
answered on 23 Sep 2010, 04:12 PM
Hello:
I have Telerik RadControls for Winforms Q2 2009 SP1 Version 9.2.1
What's the latest version?
I have Telerik RadControls for Winforms Q2 2009 SP1 Version 9.2.1
What's the latest version?
0
Richard Slade
Top achievements
Rank 2
answered on 23 Sep 2010, 04:17 PM
Latest is 2010 Q2 914
I can't replicate what happens on yours (Im using the latest version)
Richard
I can't replicate what happens on yours (Im using the latest version)
Richard
0
Denis Cilliers
Top achievements
Rank 1
answered on 09 Oct 2012, 01:52 PM
The problem arises due to the order of the items in the designer file
if you swap the order the problem will go away
make this simple change in the designer
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
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
0
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