标题:指出错误 关于GDI
取消只看楼主
lyy3146
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2010-8-30
结帖率:50%
已结贴  问题点数:20 回复次数:0 
指出错误 关于GDI
程序代码:
using System;
using System.Collections.Generic;
using using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _5zq
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
           

        }
            private void Form_paint(object sender, PaintEventArgs e)
        {   
             Graphics g = e.Graphics;
            Pen pen = new Pen(Color.Red, 5);
            Point point1 = new Point(300, 100);
            Point point2=new Point(750,100);
            Point point3 = new Point(300,600);
            Point point4 = new Point(750, 600);
            g.DrawLine(pen, point1,point2);
            g.DrawLine(pen, point2, point3);
            g.DrawLine(pen, point3, point4);
            g.DrawLine(pen, point4, point1);

           
            }
       
        }

        }
      
    


那里有错误啊  我总是显现不出我要画的内容
搜索更多相关主题的帖子: GDI 
2010-09-06 18:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-319322-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.288935 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved