PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Network.IsAvailable

Reply

Network.IsAvailable

 
Thread Tools Rate Thread
Old 22-02-2006, 05:30 AM   #1
gene kelley
Guest
 
Posts: n/a
Default Network.IsAvailable



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

  Reply With Quote
Old 22-02-2006, 12:08 PM   #2
vbnetdev
Guest
 
Posts: n/a
Default Re: Network.IsAvailable

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



"gene kelley" <okay@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
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off