This is a migrated thread and some comments may be shown as answers.

RadWindow.StartPosition = Manual

7 Answers 150 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Роберт
Top achievements
Rank 1
Роберт asked on 21 Oct 2016, 10:28 AM

Hi, 

When this mode is set and new screen location point is applied, then the window shrinks in height each time it's shown.
Even from 1-st ShowDialog its width becomes less.

Example:
If it's used as the once instatiated dialogBox and is shown each time it is needed, then each showtime it becomes less and less in heigth, up to its Top bar.

 

 

7 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Oct 2016, 10:59 AM
Hi Robert,

Thank you for writing. 

I was not able to reproduce the observed behavior on my end. For convenience, I prepared a small sample, based on the information that you provided so far and attached it to this thread. Could you please check it and let me know how it differs from your real setup? 

Thank you in advance for your patience and cooperation. 

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Роберт
Top achievements
Rank 1
answered on 21 Oct 2016, 11:16 AM

Hello Dimitar,

Please, set StartPosition property of the  RadForm2 = Manual

 

and RadForm1

 

        private void radButton1_Click(object sender, EventArgs e)
        {
            Point p = new Point(500, 500);
            //form.Location = p;  <----try to open/close comment
            form.Show();
        }

I don't remember but in some condition it even shrinks its height

0
Dimitar
Telerik team
answered on 21 Oct 2016, 11:29 AM
Hi Robert,

I still cannot reproduce this. I have attached an updated version of the sample. Could please confirm that my approach is correct?

In addition, what is the version of the suite that you are currently using?

I am looking forward to your reply.
 
Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Роберт
Top achievements
Rank 1
answered on 21 Oct 2016, 12:21 PM

Try to begin from button 2 (see the pic)

it's 2015.3.930.20

Sorry gtg, fly to HK for a week..
GL

0
Dimitar
Telerik team
answered on 24 Oct 2016, 08:56 AM
Hi,

I have changed the Target Framework of my project to 2.0 and I have referenced the assemblies with the specified version, however, the button is still entirely visible. It appears that the issue is easily reproduced with the sample project on your side. So perhaps this is connected to your current environment.  This is why I wanted to ask you what is your current operating system? 

I am looking forward to your reply.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Роберт
Top achievements
Rank 1
answered on 23 Nov 2016, 09:58 AM
W7SP1
0
Dimitar
Telerik team
answered on 24 Nov 2016, 09:09 AM
Hello Robert,

I have tested with the sample project on Windows 7 but, the result is the same. So this must be something specific to your environment. We do not have other reports for similar issues as well. What I can suggest is to check and set the form's height in the OnShown event handler.

I hope this will be useful.  

Regards,
Dimitar
Telerik by Progress
Telerik UI for WinForms is ready for Visual Studio 2017 RC! Learn more.
Tags
General Discussions
Asked by
Роберт
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Роберт
Top achievements
Rank 1
Share this question
or