- 分享
- 0
- 人气
- 0
- 主题
- 62
- 帖子
- 6367
- UID
- 51295
- 积分
- 3715
- 阅读权限
- 21
- 注册时间
- 2006-11-21
- 最后登录
- 2022-1-19
- 在线时间
- 3699 小时
 
|
http://www.dreamincode.net/forums/showtopic57408.htm
1.加入Refrence system.wnidows.forms
2.Code这样(比如我要加Timer)
VB
Imports System.Windows.Forms
Class Window1
Friend Withevents Timer1 As New Forms.Timer '禁止Timers.Timer / Threadnig.Timer
Private Sub Timer1_Tick() Handles Timer1.Tick
End Sub
End Class
C#
using System.Windows.Forms
class window1
{
friend withevents Forms.Timer Timer1 = new timer
private void timer1_tick()
{
}
}
搭拉~ ^^ |
|