• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1479
  • Last Modified:

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

Can we set the hyperlink in message box text in a message box? If yes, how?
  • 3
1 Solution
You need to custom messagebox to display above hyperlink controls in your dialogs.
puranik_pAuthor Commented:
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 techsupport@cbayscribe.com or 1-800-295-4600 ext. #3133."

Every time I have to set hyper link "techsupport@cbayscribe.com" 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?

>>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..

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now