检查Internet连接,提示拨号对话框。请帮忙! [英] Check Internet connection, prompt dial-up dialog. Pls Help!
问题描述
我已经在几个论坛上发布了这个问题,但没有回应。所以我想b / b
希望任何知道我在说什么的人请给你
解决方案或建议。
我的问题是我需要检查互联网连接并弹出一个拨号
对话框什么时候没有?
我''我尝试了以下方法:
Dim myReq作为HttpWebRequest
尝试
myReq = WebRequest.Create(" http:// www.yahoo.com/")
myReq.GetResponse()
Catch ex As Exception
-------- -------->这里提示拨号对话框
结束尝试
到目前为止检查部分还可以。但它不能自动拨号或提示
拨号。
我需要你正确的方法来做这个。你的帮助很多
赞赏。谢谢。
Hi, I''ve posted this question on several forum but have no response. So I
hope anyone who have any idea what I''m talking about please give your
solution or advice.
My problem is I need to check the internet connection and pop-up a Dial-Up
dialog when there isn''t any?
I''ve tried the following:
Dim myReq As HttpWebRequest
Try
myReq = WebRequest.Create("http://www.yahoo.com/")
myReq.GetResponse()
Catch ex As Exception
----------------> prompt for Dial-Up dialog here
End Try
The checking part is ok so far. But it can''t automatically dial up or prompt
for dial up.
I need your advice on the correct way in doing this. Your help is much
appreciated. Thanks.
推荐答案
尝试使用WinInet API
Clas
困倦 < no@nono.no>在消息中写道
新闻:Oq ************** @ TK2MSFTNGP15.phx.gbl ...
Try using the WinInet API
Clas
"sleepyant" <no@nono.no> wrote in message
news:Oq**************@TK2MSFTNGP15.phx.gbl...
我是'我在几个论坛上发布了这个问题,但没有回复。所以我希望任何知道我在说什么的人请提供你的解决方案或建议。
我的问题是我需要检查互联网连接并弹出在没有拨号的情况下进行拨号对话?
我尝试了以下内容:
将myReq作为HttpWebRequest进行调暗
尝试
myReq = WebRequest.Create(" http://www.yahoo.com/")
myReq.GetResponse()
Catch ex As Exception
- -------------->这里提示拨号对话框
结束尝试
到目前为止,检查部分还可以。但它不能自动拨号或拨打b $ b提示。
我需要你正确的方法来做这个。非常感谢您的帮助。谢谢。
Hi, I''ve posted this question on several forum but have no response. So I
hope anyone who have any idea what I''m talking about please give your
solution or advice.
My problem is I need to check the internet connection and pop-up a Dial-Up
dialog when there isn''t any?
I''ve tried the following:
Dim myReq As HttpWebRequest
Try
myReq = WebRequest.Create("http://www.yahoo.com/")
myReq.GetResponse()
Catch ex As Exception
----------------> prompt for Dial-Up dialog here
End Try
The checking part is ok so far. But it can''t automatically dial up or prompt for dial up.
I need your advice on the correct way in doing this. Your help is much
appreciated. Thanks.
Process.Start(" rundll32.exe"," shell32.dll,Control_RunDLL ncpa.cpl ,, 0" );
这将打开网络连接控制面板。这不完全是
拨号对话框,但至少距离它还有一步之遥:)
-
Victor Hadianto
http://synop.com/Products/SauceReader/
" sleepyant" < no@nono.no>在消息中写道
新闻:Oq ************** @ TK2MSFTNGP15.phx.gbl ...
Process.Start("rundll32.exe", "shell32.dll,Control_RunDLL ncpa.cpl,,0");
This will open the "Network Connections" control panel. This is not exactly
dial-up dialog but at least it''s one step closer :)
--
Victor Hadianto
http://synop.com/Products/SauceReader/
"sleepyant" <no@nono.no> wrote in message
news:Oq**************@TK2MSFTNGP15.phx.gbl...
我是'我在几个论坛上发布了这个问题,但没有回复。所以我希望任何知道我在说什么的人请提供你的解决方案或建议。
我的问题是我需要检查互联网连接并弹出在没有拨号的情况下进行拨号对话?
我尝试了以下内容:
将myReq作为HttpWebRequest进行调暗
尝试
myReq = WebRequest.Create(" http://www.yahoo.com/")
myReq.GetResponse()
Catch ex As Exception
- -------------->这里提示拨号对话框
结束尝试
到目前为止,检查部分还可以。但它不能自动拨号或提示
拨号。
我需要你正确的方法来做这个。非常感谢您的帮助。谢谢。
Hi, I''ve posted this question on several forum but have no response. So I
hope anyone who have any idea what I''m talking about please give your
solution or advice.
My problem is I need to check the internet connection and pop-up a Dial-Up
dialog when there isn''t any?
I''ve tried the following:
Dim myReq As HttpWebRequest
Try
myReq = WebRequest.Create("http://www.yahoo.com/")
myReq.GetResponse()
Catch ex As Exception
----------------> prompt for Dial-Up dialog here
End Try
The checking part is ok so far. But it can''t automatically dial up or
prompt
for dial up.
I need your advice on the correct way in doing this. Your help is much
appreciated. Thanks.
2004年11月5日星期五13:31:04 +0800,沉睡 < no@nono.no>写道:
$ b $b¤我已经在几个论坛上发布了这个问题,但没有回复。所以我想要b $ b¤希望有任何人知道我在说什么,请提供你的
$ b $b¤解决方案或建议。
$ b $b¤
$ b $b¤我的问题是我需要检查互联网连接并弹出拨号
$ b $b¤对话框,如果没有?
$ b $b¤
$ b $b¤我尝试过以下方法:
$ b $b¤
$ b $b¤将myReq变暗为HttpWebRequest
¤尝试
$ b $b¤myReq= WebRequest.Create(" http://www.yahoo.com/")
$ b $b¤myReq.GetResponse()
$ b $b¤Catch ex As Exception
$ b $b¤---------------->这里提示拨号对话框
$ b $b¤结束尝试
$ b $b¤
$ b $b¤到目前为止检查部分还可以。但它不能自动拨号或提示
$ b $b¤拨号。
$ b $b¤
$ b $b¤我需要你正确的建议这样做。你的帮助很多
$ b $b¤赞赏。谢谢。
$ b $b¤
请参阅以下内容:
http://makeashorterlink.com/?K3F3155B9
Paul ~~~ pc ****** @ ameritech.net
Microsoft MVP(Visual Basic)
On Fri, 5 Nov 2004 13:31:04 +0800, "sleepyant" <no@nono.no> wrote:
¤ Hi, I''ve posted this question on several forum but have no response. So I
¤ hope anyone who have any idea what I''m talking about please give your
¤ solution or advice.
¤
¤ My problem is I need to check the internet connection and pop-up a Dial-Up
¤ dialog when there isn''t any?
¤
¤ I''ve tried the following:
¤
¤ Dim myReq As HttpWebRequest
¤ Try
¤ myReq = WebRequest.Create("http://www.yahoo.com/")
¤ myReq.GetResponse()
¤ Catch ex As Exception
¤ ----------------> prompt for Dial-Up dialog here
¤ End Try
¤
¤ The checking part is ok so far. But it can''t automatically dial up or prompt
¤ for dial up.
¤
¤ I need your advice on the correct way in doing this. Your help is much
¤ appreciated. Thanks.
¤
See the following:
http://makeashorterlink.com/?K3F3155B9
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
这篇关于检查Internet连接,提示拨号对话框。请帮忙!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!