苏飞论坛

标题: 问一下VS2010属性 里面怎么没有OnPaint呀,我要重写OnPaint怎么做。 [打印本页]

作者: 站长苏飞    时间: 2013-7-9 11:19
标题: 问一下VS2010属性 里面怎么没有OnPaint呀,我要重写OnPaint怎么做。
♂[北京] Bill() 11:13:42
问一下VS2010属性 里面怎么没有OnPaint呀,我要重写OnPaint怎么做。


剪刀手() 11:14:07
protected override void OnPaint()

剪刀手() 11:14:17
一般你输入 protected override就会自动提示了

剪刀手() 11:14:23
注意大小写

♂[北京] Bill() 11:14:30
一定得自己手动写吗?

剪刀手() 11:14:36
是的

剪刀手() 11:14:41
当然你也可以复制

♂[北京] Bill() 11:14:53
那参数什么的,我自己怎么知道。

剪刀手() 11:15:13


剪刀手() 11:15:16
试试就知道了

♂[北京]-Ro4ters() 11:15:39
俩 tab参数就有了.

♂站长苏飞() 11:16:53
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
        }


♂[北京] Bill() 11:17:04
嗯 ,有了。

♂[北京] Bill() 11:17:35
之前用VC6.0,有管理的地方,直接加上。

♂[北京] Bill() 11:17:50
用这找了半天。


[groupid=74]sufeinet总群[/groupid]




欢迎光临 苏飞论坛 (http://www.sufeinet.com/) Powered by Discuz! X3.4