Home All Groups Group Topic Archive Search About

How to initiate dial up sequence

Author
3 Feb 2006 3:39 PM
BobAchgill
I need some VB .Net code that will automatically cause the user's machine to
begin the dial up process to connect to the internet if no connection is
found active.

Author
3 Feb 2006 6:58 PM
Herfried K. Wagner [MVP]
"BobAchgill" <BobAchg***@discussions.microsoft.com> schrieb:
>I need some VB .Net code that will automatically cause the user's machine
>to
> begin the dial up process to connect to the internet if no connection is
> found active.

<URL:http://dotnet.mvps.org/dotnet/code/net/#InternetDial>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
4 Feb 2006 7:08 PM
BobAchgill
Herfried,

I put the Public Class InternetDialer class below my Public Class Form1 end
class...

I located a good place in my code to call a dial up function but it is not
clear to me what line of code to insert to wake up the InternetDialer to do
it's thing.

It looks like what I need but I am not experienced enough to know how to
impliment with out an example or a suggested line of code to fire it up.

Thanks!

Bob

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "BobAchgill" <BobAchg***@discussions.microsoft.com> schrieb:
> >I need some VB .Net code that will automatically cause the user's machine
> >to
> > begin the dial up process to connect to the internet if no connection is
> > found active.
>
> <URL:http://dotnet.mvps.org/dotnet/code/net/#InternetDial>
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
>
Author
5 Feb 2006 2:28 AM
Herfried K. Wagner [MVP]
"BobAchgill" <BobAchg***@discussions.microsoft.com> schrieb:
> I put the Public Class InternetDialer class below my Public Class Form1
> end
> class...
>
> I located a good place in my code to call a dial up function but it is not
> clear to me what line of code to insert to wake up the InternetDialer to
> do
> it's thing.
>
> It looks like what I need but I am not experienced enough to know how to
> impliment with out an example or a suggested line of code to fire it up.

Simply add the file to an empty new code file and use the code below to
create the internet connection:

\\\
InternetDialer.Dialup(InternetDialer.AutoDialOptions.ForceOnline)
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>