public class MyClass:Button { MyClass() { this.Location = new System.Drawing.Point(134, 34); } } ---------------------------------------------------------------------- ///a property of Button Class(.NET Source Code ) public Point Location { get { return new Point(this.x, this.y); //x is a private field } set { this.SetBounds(value.X, value.Y, this.width, this.height, BoundsSpecified.Location); } }
Point loc = base.Location; return new Point(loc.X, loc.Y);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)