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


Im a noob and i need help!

Posted on 2003-03-24
Medium Priority
Last Modified: 2010-05-01
I was wondering how i could add links to the menu. A link to my website would be useful. I just got Visual Basic 6 and need help with this. If you have any answers plz tell me!!!!!!!!
email me at genesis_311@hotmail.com or just leave on forum
Question by:killnu3
  • 2

Accepted Solution

emadat earned 300 total points
ID: 8198867
On your Click event; add this code:

Dim R As Long
    R = ShellExecute(Me.hwnd, "Open", "http://www.domain_name.com/", vbNullString, App.Path, vbNormalFocus)

You have to put this line in any module:
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


Author Comment

ID: 8205287
thank you

Author Comment

ID: 8214498
That was excellent! You were a great help! Thank you!

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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 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…
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…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

572 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