you can overwrite the OnPaint method: protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) { System.Drawing.Drawing2D.GraphicsPath shape = new System.Drawing.Drawing2D.GraphicsPath(); Point[] points = new Point[6]; points[0] = new Point(0, 0); points[1] = new Point(this.Width, 0); points[2] = new Point((this.Width/2)+1, this.Height/2); points[3] = new Point(this.Width, this.Height); points[4] = new Point(0,this.Height); points[5] = new Point((this.Width / 2) - 1, this.Height / 2); shape.AddPolygon(points); this.Region = new System.Drawing.Region(shape); } ... and you will have a glasshour shaped form...
C
c_onica
@c_onica
Posts
-
How Create Nonrectangular form in c#.net 2005 -
Trapeze-shaped form...10x for the suggestion, but as I said, I want to know if there is a way to reshape the form, I dont want to use transparency keys or to overwrite OnPaint method
-
Trapeze-shaped form...Hi everybody,I'm new here and I have a question... I'd like to create a form which would simulate a perspective view, so my form will have to have a trapeze shape. I don't want to use Region(myShape) because that will clip my form and I want to have the entire form. Thanks in advance for any suggestions.