扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
Const INTERNET_DIALSTATE_DISCONNECTED = 1 Const INTERNET_AUTODIAL_FORCE_ONLINE = 1 Const INTERNET_AUTODIAL_FORCE_UNATTENDED = 2 Const INTERNET_DIAL_UNATTENDED = &H8000 Dim iHandle As Long Private Declare Function InternetDial Lib "wininet.dll" ( _ByVal hwndParent As Long, _ByVal lpszConnectoid As String, _ByVal dwFlags As Long, _lpdwConnection As Long, _ByVal dwReserved As Long) As Long |
Private Declare Function InternetHangUp Lib "wininet.dll" _ (ByVal dwConnection As Long, _ ByVal dwReserved As Long) As Long Private Declare Function InternetAutodial Lib "wininet.dll" _ (ByVal dwFlags As Long, ByVal dwReserved As Long) As Long Private Declare Function InternetAutodialHangup Lib "wininet.dll" _ (ByVal dwReserved As Long) As Long Private Sub Check1_Click() Private Sub Check2_Click() Private Sub Command1_Click() Private Sub Command2_Click() Private Sub Command3_Click() Private Sub Form_Load() Private Sub Timer1_Timer() Private Sub Timer2_Timer() |
以上就是程序的全部源代码,编译后就是一个简单控制上网的小软件,操作简单,非常实用,以上程序在Windows98+VB6.0中调试通过。其实通过这个小程序可以看出,很多的实用小软件都源于我们日常生活中的一些小问题,只要你善于发现和思考,相信你也一样能够做到。
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者