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

Manual Location for Shaped Form

1 Answer 66 Views
ShapedForm
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 27 Jul 2010, 03:37 PM
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. 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 02 Aug 2010, 10:01 AM
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;
f.ShowDialog();

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

Best wishes,
Nikolay
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
Tags
ShapedForm
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or