RadWindow.StartPosition = Manual

8 posts, 0 answers
  1. Robert
    Robert avatar
    53 posts
    Member since:
    Feb 2010

    Posted 21 Oct Link to this post

    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.

     

     

  2. Dimitar
    Admin
    Dimitar avatar
    1411 posts

    Posted 21 Oct Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Robert
    Robert avatar
    53 posts
    Member since:
    Feb 2010

    Posted 21 Oct in reply to Dimitar Link to this post

    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

  5. Dimitar
    Admin
    Dimitar avatar
    1411 posts

    Posted 21 Oct Link to this post

    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.
  6. Robert
    Robert avatar
    53 posts
    Member since:
    Feb 2010

    Posted 21 Oct in reply to Dimitar Link to this post

    Try to begin from button 2 (see the pic)

    it's 2015.3.930.20

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

  7. Dimitar
    Admin
    Dimitar avatar
    1411 posts

    Posted 24 Oct Link to this post

    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.
  8. Robert
    Robert avatar
    53 posts
    Member since:
    Feb 2010

    Posted 23 Nov in reply to Dimitar Link to this post

    W7SP1
  9. Dimitar
    Admin
    Dimitar avatar
    1411 posts

    Posted 24 Nov Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready