Can we set the hyperlink in message box text in a message box? If yes, how?

Posted on 2006-05-31
Last Modified: 2013-11-20
Can we set the hyperlink in message box text in a message box? If yes, how?
Question by:puranik_p
    LVL 22

    Expert Comment

    LVL 22

    Expert Comment

    You need to custom messagebox to display above hyperlink controls in your dialogs.
    LVL 14

    Author Comment

    According to your earlier comment it is posiible and I have done that already.
    But my problem is I have different msg text with different hyper links to diplay the user.
    So every time dynamically I need to change the position of msg text and hyperlink control
    depending of the message which I need to display to the user.
    e.g. consider a case that I am getting the message as a response from webserver and I want to display that to user.

    e.g. " ACCESS DENIED: Your user account is not configured to “Print” documents. For assistance, please contact technical support via email at or 1-800-295-4600 ext. #3133."

    Every time I have to set hyper link "" to a static control which is made as hyperlink on a dialog box and rest of the msg text along with proper positions and alignments. This is possible when I know which msg to be displayed. But when the message comes from webserver as a response of a request then it is tedious.

    So is there any provision that I should directly put in dialog box or msg box and it will automatically determine the hyperlink and treat it as hyperlink.
    (Just like MSword does.)

    Does rech edit control provide this?

    Any soln for this?

    LVL 22

    Accepted Solution

    >>it will automatically determine the hyperlink and treat it as hyperlink.(Just like MSword does.)

    For this purpose you need to modify your hyperlink control..and write your own function to detect string as hyperlink..

    You may consider special cases to detect string as hyperlink as detect part of string includes .com .net ( all domains ) valid characters also like '@' etc for mail-ids...SO As said before you need to put all this conditions together to detect string as hyperlink..


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now