dial the default account

Posted on 2003-02-25
Medium Priority
Last Modified: 2010-05-01
is there any code that will dial up the default "dial-up" (networking) account?  I dont want it to be 'embedded', i would like it to popup the dialing dialogue (and if the password is remembered then autodial).

Also, is there any code that could disconnect the account?

I would like two buttons one to connect, and one to disconnect.

Im reasonably new to vb so code snippets would be useful, including the onclick events.

Any help is greatly appreciated.

Question by:frosty12345
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 18

Expert Comment

ID: 8019097
something like this should work
     Date convertDate(String dateHolder)
     java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat("yyyy-MM-dd");    
     try {
        java.util.Date tDate = fmt.parse(dateHolder);
        return new java.sql.Date( tDate.getTime() );
     } catch (java.text.ParseException pe) {
        return null;
LVL 18

Expert Comment

ID: 8019102
damn, wrong thread. SORRY!

Accepted Solution

merphie earned 100 total points
ID: 8028094
It can be done with Windows API.  I have used InternetDial Api to dial connections.   But you have to specify the connection name.

The internetautodial function will dial the default.

This website will give you some examples and show you how to use the functions.

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 8067220
sorry about the delay .. i wish to use the internetautodial connect/disconnect functions but i am unsure about how to integrate them into my program.  

Can you please explain the code for two buttons (CMD1 and CMD2) cmd1 to connect and cmd2 to disconnect situated on a blank form (FRM1).

Preferably the connect/disconnect code would be located in a module (MOD1)

Im relativly new to this so please explain simply.

Cheers for any advice.

Expert Comment

ID: 8901124
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
LVL 49

Expert Comment

ID: 8972846
Moderator, my recommended disposition is:

    Accept merphie's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question