AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Syed Rizwan Muhammad Rizvi
Expertise
I can answers questions regarding web based and desktop based programming in VB.Net. Which can include SOAP, XML, Custom Controls, COM Interoperability etc.

Experience
Have been working in this specific area for last 2 years previously I was a VB 6 Developer with experties in other languages as well. Total 10 years of programming experience.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > paste text as hyperlink.

Topic: VB.NET



Expert: Syed Rizwan Muhammad Rizvi
Date: 8/23/2006
Subject: paste text as hyperlink.

Question
Hi.

I am using VB.Net.  Standard Edition.

My application can dynamically create strings that can be pasted into the address bar in a browser.
Thus far,  I have been successfull in putting this string into the clipboard.  It works fine.


I would like to copy the string into the clipboard as a hyperlink.  I can wrap the string in a HTML tag,  but all I get is a longer string.

example...

<a href="http://tinyurl.com/">TinyURL</a>


I would like to copy this string into the clipboard.  Then I would like the string to magically convert to a hyperlink. After all, it looks like a HTML tag.

I could then paste into Microsoft Word, Excel, email etc as a hyperlink.

Any help would be appreciated.  

Answer
there is no magic in life :) all effort, if you paste only the URL e.g. http://SomeURL then MS Office software will automatically convert it to a hyper link, or otherwise you will need to create an MS Word object at the back and add a new hyperlink into it using MS Word and then ask MS word to copy it for you so its compatible between MS word applications. All that done programmatically.

View Follow-Ups    Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.