PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
Network.IsAvailable
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
Network.IsAvailable
![]() |
Network.IsAvailable |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

