?
Solved

Im a noob and i need help!

Posted on 2003-03-24
3
Medium Priority
?
123 Views
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
thx
0
Comment
Question by:killnu3
[X]
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
  • 2
3 Comments
 
LVL 3

Accepted Solution

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

Regards
0
 

Author Comment

by:killnu3
ID: 8205287
thank you
0
 

Author Comment

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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

765 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