C#中我要用windows窗体绘制图形为什么显示不出来呢我不知道错在哪里求指教O(∩_∩)O谢谢
espaceWindowsFormsApplication2{publicpartialclassForm1:Form{publicForm1(){InitializeC...
espace WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Graphics g = this.CreateGraphics();
Pen p = new Pen(Color.Purple);
g.DrawRectangle(p, 200, 200, 300, 300);
g.DrawLine(p, 200, 200, 100, 100); 展开
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Graphics g = this.CreateGraphics();
Pen p = new Pen(Color.Purple);
g.DrawRectangle(p, 200, 200, 300, 300);
g.DrawLine(p, 200, 200, 100, 100); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询