Create a shaped window with C #

xiaoxiao2021-03-06  40

private void Form1_Load (object sender, System.EventArgs e) {this.BackColor = Color.Blue; System.Drawing.Drawing2D.GraphicsPath gPath = new System.Drawing.Drawing2D.GraphicsPath (); gPath.AddString ( "I like C #! ", New FontFamily (" Song "), (int) fontstyle.bold, 60, new point (5, 10), stringformat.GenericDefault; //gpath.addpie (200, 200, 300, 300, 10F, 90.0F); this.region = New region (gpath);

转载请注明原文地址:https://www.9cbs.com/read-67317.html

New Post(0)