PDA

View Full Version : سوال: تغییر لکیشن کنترل ها در اجرا



daneshmand1
سه شنبه 08 تیر 1389, 12:50 عصر
سلام
در حین اجرای برنامه امکان تغییر مکان کنترل ها هست؟ من برای تغییر مکان پنل از دستور panel.location.x= 100 استفاده کردم ولی این این کد فقط مقدار برگشتی داره و مقداری نمی گیره.

r00tkit
سه شنبه 08 تیر 1389, 12:57 عصر
می شه، .x رو وردار

Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container

sds1920
سه شنبه 08 تیر 1389, 13:45 عصر
panel.location=new Point(x,y);