** 屏幕保护是生活中常见的,这一章我们将学习屏幕保护。
学习之前我们得了解控件
一:控件
1):timer 时间控件
2):button 用户单击时 引发事件
3):listbox 可以从中选择项的列表
4):groupbpx 在一组空间周围显示一个带有可选标题的框架
5)label:为控件提供运行时信息或说明性文字
6):linkabel:Descriptionlinklabel
7):listview:以五种不同试图中的一种显示项的集合
8)menustrip:显示按功能分组的应用程序命令和选项。
等等。。。。
**现在了解下怎样把方形窗体变成圆形
二:画圆
GraphicsPath path = new GraphicsPath();//画圆第一步
path.AddEllipse(0, 0, 200, 200);//画圆第二步
this.Region = new Region(path);//画圆第三步
画圆前提是给GraphicsPath进行实例化,因为工具箱中没有此类工具,需要手动工具。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Drawing2D;就是实例化的东西。
气泡代码
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D