Adding a link to a form


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Adding a link to a form

  1. #1
    Join Date
    Mar 2006
    Location
    CT
    Posts
    6

    Adding a link to a form

    I would like to add a link to a form and when clicked will take you to a web site.

    Is there a control or code available?

  2. #2
    Join Date
    Dec 2004
    Posts
    717
    Pls Find in Classic VB Section or .NET Section.. As far as I remember, there is one thread in these section as same as what you want...
    If i found then let u know.

    I found it..
    http://forums.devx.com/showthread.ph...ght=link+lable

    check it out...
    Last edited by Sync; 03-18-2006 at 11:46 AM.
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

  3. #3
    Join Date
    Oct 2005
    Posts
    133
    hi mate,

    vb6 is as follows

    paste the below code into the form declaration section

    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
    Private Const SW_SHOW = 5

    and eith on a command button or label or whatever you wish paste the next bit of code

    ShellExecute hWnd, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOW

    there you go mate

    no reference is needed for this ...

    Rob(AKA Spumbu)

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Dec 2004
    Posts
    717
    Best Regards,
    Michael Sync
    http://michaelsync.net

    The more you share,The more you get

  6. #6
    Join Date
    Mar 2006
    Location
    CT
    Posts
    6
    Thanks, Guys/Gals, got it working.

Similar Threads

  1. Adding Ms word functionality to the Windows form
    By software_develo in forum .NET
    Replies: 0
    Last Post: 12-01-2005, 09:43 AM
  2. Replies: 3
    Last Post: 08-09-2005, 01:59 PM
  3. Adding values of two textboxes on a form
    By ANGEL9720 in forum VB Classic
    Replies: 1
    Last Post: 05-23-2005, 11:06 AM
  4. Replies: 2
    Last Post: 09-04-2001, 03:51 PM
  5. Setting form as MDIChild form at runtime
    By Setya in forum VB Classic
    Replies: 0
    Last Post: 01-08-2001, 06:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center