Manual Location for Shaped Form

2 posts, 0 answers
  1. Phillip Foster
    Phillip Foster avatar
    58 posts
    Member since:
    Apr 2010

    Posted 27 Jul 2010 Link to this post

    I am trying to set the location of a shaped form to be relative to a specific control on the calling form, however when i change the location before the "ShowDialog()"  it doesn't actually move the form. 

    regardless of the cords that i put in, the shaped form opens in the same spot. 

  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 02 Aug 2010 Link to this post

    Hi Phillip Foster,

    In order to achieve the desired behavior, you should set the StartPosition property to Manual:
    ShapedForm f = new ShapedForm();
    f.Location = new Point(500, 500);
    f.StartPosition = FormStartPosition.Manual;

    I hope this helps. If you have additional questions, feel free to contact us.

    Best wishes,
    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