CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Location
    Kent, UK
    Posts
    10

    Pro looking About

    How would one go about adding a URL to a form so user could go straight to a the developers websiter to register, search for update and patches?

    Ive seen these url's on many different applications about dialog boxes but cant work out how to do it.

    Please Help

    D.G.Holmes
    Gap Student

  2. #2
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: Pro looking About

    I'm not sure if I exactly know what you want, but maybe this will help.
    Add this code to 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



    and this to label1.click where label1.caption = "http://www.yourlink.com"

    Dim link
    link = ShellExecute(me.hwnd, "Open", Label1.Caption, "", App.Path, 1)



    Hope this will help



  3. #3
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: Pro looking About

    oops...
    not label1.click...Label1_Click ()
    sorry


  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured