Foxtable(狐表)用户栏目专家坐堂 → GDI 额外的问题


  共有2545人关注过本帖平板打印复制链接

主题:GDI 额外的问题

帅哥哟,离线,有人找我吗?
blackzhu
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章
等级:狐仙 帖子:9875 积分:57596 威望:0 精华:15 注册:2008/9/1 9:45:00
GDI 额外的问题  发帖心情 Post By:2015/7/22 16:42:00 [只看该作者]

Dim g As Graphics = e.Form.Controls("PictureBox1").BaseControl.CreateGraphics
g.Clear(Color.red)
Dim mpen As New Pen(Color.Red)
Dim p1 As Point = New Point(10, 80)
Dim p2 As Point = New Point(10, 160)
g.DrawLine(mpen, p1, p2)

为啥不能画图?

帮助中的dgi 会不断的绘制相同的东西,

以前老大叫我把代码写在SizeChanged的事件中,但是无用还是会绘制出相同的东西出来.

 回到顶部
总数 12 1 2 下一页