Console.WriteLine(" Stop Alarm? Enter Q")
Dim input As String = Console.ReadLine()
If input.Equals("Y") Or input.Equals("y") Then
Return
Else
CType(sender, AlarmClock).Stop = True
Return
End If
End If
End Sub
End Class
' The driver class that hooks up the event handling method of
' WakeMeUp to the alarm event of an Alarm object using a delegate.
' In a forms-based application, the driver class is the
' form.
'
Public Class AlarmDriver
Public Shared Sub Main()
' Instantiates the event receiver.
Dim w As New WakeMeUp()
' Instantiates the event source.
Dim clock As New AlarmClock()
' Wires the AlarmRang method to the Alarm event.
AddHandler clock.Alarm, AddressOf w.AlarmRang
clock.Start()
End Sub
End Class
End Namespace
vb.net简单例子的介绍就聊到这里吧,感谢你花时间阅读本站内容 , 更多关于vbnet implements、vb.net简单例子的信息别忘了在本站进行查找喔 。
推荐阅读
- 进程的虚拟地址空间,进程的虚拟地址空间在哪里
- html5获取pc信息,html代码获取
- 网站开发图纸,网页图纸
- 抖音直播互看群,抖音直播群聊在哪里
- c语言函数输出多个返回值 c语言如何用函数返回多个返回值
- flutter返回上一步刷新,flutter pageview 刷新
- lampthinkphp的简单介绍
- 拱墅区代理记账软件哪家好,拱墅区会计结算中心
- vbnet字符串运算符 vbnet字符串函数