CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    2

    Disconnect from the internet using VB

    Hey!
    I can't find a way to disconnect from the internet with a VB 6.0 program.

    I tried this http://www.vb-world.net/internet/tip21.html
    But VB don't accept the first 5 lines and this part:

    Public Declare Function RasHangUp Lib "rasapi32.dll" Alias _
    "RasHangUpA" (ByVal hRasConn As Long) As LongPublic gstrISPName As String
    Public ReturnCode As Long

    Anyone have a way to do this, or corrections for the codes above

    Thanks!

    Niels


  2. #2

    Re: Disconnect from the internet using VB

    Try http://www.freevbcode.com, they have an example of how to hang up on their web site.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured