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

How do I make a label a link to a webpage?? (Borland C++ Builder)

Posted on 2001-06-29
Last Modified: 2006-11-17
How do I make a label a link to a webpage?? (in Borland C++ Builder)
Question by:Fearum
  • 3

Expert Comment

ID: 6237695
ShellExecute(handle, "open", "http://www.experts-exchange.com", NULL, NULL, SW_SHOWNORMAL);

Expert Comment

ID: 6237703
Oops, I meant:

ShellExecute(handle, "open", http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20141167, NULL, NULL, SW_SHOWNORMAL);

Expert Comment

ID: 6237708
ShellExecute(handle, "open", http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20141167 , NULL, NULL, SW_SHOWNORMAL);

Perhaps I got it right this time.
LVL 32

Expert Comment

ID: 6237765
See the 2nd question at:


Here, there is a CStaticLink class described that enhances the MFC CStatic control to do what I think you want to do.  It seem you are using Borland and their "label" control which I think is about the same as CStatic.  I'm sure the code will need to be a bit different but the concept should be similar.

Accepted Solution

cyprus106 earned 50 total points
ID: 6241223
try this->

ShellExecute( this->Handle, "open", URLLabel->Caption.c_str( ), NULL, NULL, SW_SHOW );

just in case the other 2 didnt make sense. and try    www.bytamin-c.com   on ther tips and tricks section they have a page about web links and labels.

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

Suggested Solutions

Title # Comments Views Activity
Grammars for C C++ and java 1 131
Dynamically allocate memory 9 62
Embarcadero WebBroker REST server endpoint parameters 2 82
I could not set window to top 4 20
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

840 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