Home All Groups Group Topic Archive Search About
Author
22 Feb 2006 5:30 AM
gene kelley
Regarding this snippet:      

Dim isAvailable As Boolean
      isAvailable = My.Computer.Network.IsAvailable

I have an app in which I need to know if the user is "Connected",
"Connected" meaning the user has a LAN of some sort or the user has a
dialup modem that is online. 

I recall from VB6 that depending on what code you used, you could test
for at least 3 user possibilities:
1) User has any kind of connection
2) User has LAN connection
3) User has modem connection.

Question:  Is the above snippet equivalent to "user is connected
either via LAN or modem" if the return is True?

Thanks,

Gene

Author
22 Feb 2006 12:08 PM
vbnetdev
http://msdn2.microsoft.com/en-us/library/d1e9b5cx.aspx

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com



Show quote Hide quote
"gene kelley" <o***@by.me> wrote in message
news:a6rnv19luhtojes0vqrf0iep1o5fr5n081@4ax.com...
>
> Regarding this snippet:
>
> Dim isAvailable As Boolean
>      isAvailable = My.Computer.Network.IsAvailable
>
> I have an app in which I need to know if the user is "Connected",
> "Connected" meaning the user has a LAN of some sort or the user has a
> dialup modem that is online.
>
> I recall from VB6 that depending on what code you used, you could test
> for at least 3 user possibilities:
> 1) User has any kind of connection
> 2) User has LAN connection
> 3) User has modem connection.
>
> Question:  Is the above snippet equivalent to "user is connected
> either via LAN or modem" if the return is True?
>
> Thanks,
>
> Gene
>