Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

July 19, 2007

Auto-Linking URLs in C# and VB.NET

The Chilkat.CkString class will include a autoLinkUrls method to automatically find and create HTML hyperlinks for URLs found in text. It is available in the pre-release for the 2.0 Framework at http://www.chilkatsoft.com/preRelease.asp

It will be available in all platforms (ActiveX, C++, Perl, Ruby, Java, Python, etc.) in the next official release. Here is an example:

            Chilkat.CkString str = new Chilkat.CkString();
	
            str.append("This is a test (http://www.chilkatsoft.com/) of the URL auto-linking.");
            str.autoLinkUrls();
	
            textBox1.Text = str.getString();
	

After auto-linking, the text becomes:

This is a test (<a href="http://www.chilkatsoft.com/">http://www.chilkatsoft.com/</a>) of the URL auto-linking.


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.