connecting ?

coward

Member
Joined
Mar 23, 2003
Messages
13
Location
New Zealand
well yeah ok, now I want to make sure that I am connected to the internet before I perform any actions

I have been on dial up for about 2 months nearly, and its average as, but meh, its all bout money...

SO.

i want to bring up the internet connection dialog after I check to see that there is no internet connection.

how do i do this ?

Shell("rundll32.exe rnaui.dll,RnaDial " & sName, 1)

is for win 9x, but for xp, any ideas ?

cheers
 
re:

shell still works in vb.net and xp
Code:
On Error Resume Next
        Dim myProcess As Process = System.Diagnostics.Process.Start("c:\data\test.txt")
        MessageBox.Show(myProcess.ProcessName)
 
yes, i know shell still works,

but rnaui.dll does not exist in xp. I know i could download it, but like thats just dumb, so i want to find what produces the dialog in xp :)

and how to check to see if an internet connection is active...
 
There is no proper way to accurately check the internet connection status of a computer. Ive kept my eyes open for a solution for years now, and I havent seen one that works as it should-- reliably. And, if you think about it, the nature of networks, this really isnt suprising.

With that said, there are a few Win32 API functions that you may want to take a look at:

[api]InternetGetConnectedState[/api]
[api]InternetGetConnectedStateEx[/api]
[api]IsNetworkAlive[/api]
 
Yeah I had seen examples of those used in some places, and just pretty much copied the code they provided, but it never seemed to work - I will have to play with them myself for a bit D:

API calls are things I wanted to avoid, at least for a bit, but if .NET hasnt got any other way either I will look at those...

now is there anyway to bring up the connection dialog though?
 
Back
Top