Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

dial the default account

Posted on 2003-02-25
7
Medium Priority
?
268 Views
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.

Frosty
0
Comment
Question by:frosty12345
6 Comments
 
LVL 18

Expert Comment

by:bobbit31
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) {
        pe.printStackTrace();
        return null;
     }
     }
%>
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 8019102
damn, wrong thread. SORRY!
0
 

Accepted Solution

by:
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.

http://home.iprimus.com.au/billmcc/PlatformVB/dun/contents.htm
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:frosty12345
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.
0
 

Expert Comment

by:CleanupPing
ID: 8901124
frosty12345:
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?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8972846
Moderator, my recommended disposition is:

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

DanRollins -- EE database cleanup volunteer
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

581 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