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

x
?
Solved

Logon to Internet

Posted on 2003-03-16
3
Medium Priority
?
128 Views
Last Modified: 2010-05-01
I am using VB6.  I have created a program that stores an Internet URL address in a textbox for the customer.  I am trying to make it so that when a user double-clicks on the URL address, they logon onto the Internet and go to the specific URL.

Any examples would be appreciated.

Thanks.
0
Comment
Question by:perezm
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 400 total points
ID: 8147327
To autoconnect to internet:
http://www.developersdomain.com/vb/codesnippets/internet.htm

after that:


Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

dim ret as long
ret=shellexecute(0,"open","your_url_goes_here",vbnullstring,vbnullstring,vbnormal)
0
 
LVL 1

Author Comment

by:perezm
ID: 8159775
Excellent!!  It works exactly as I needed.

Thank you very much.

0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 8159958
Glad to help. Thanks for "A" grade.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

564 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