Print Page | Close Window

Remove underline from Image in Hyperlink

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19548
Printed Date: 21 November 2024 at 9:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Remove underline from Image in Hyperlink
Posted By: jpbro
Subject: Remove underline from Image in Hyperlink
Date Posted: 05 March 2012 at 10:57am
Is it possible to remove the underline from an image in a hyperlink?

Example markup:

<TextBlock><Hyperlink><Image Source='file://Blue Lace 16.bmp'/> This is a link</Hyperlink></TextBlock>


Thanks for any help.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: jpbro
Date Posted: 05 March 2012 at 11:09am
This works - I missed it because TextDecorations='None' doesn't work (just leave the attribute empty to disable underlines).


<TextBlock><Hyperlink><Span TextDecorations=''><Image Source='file://Blue Lace 16.bmp'/></Span> This is a link</Hyperlink></TextBlock>




-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Jebo
Date Posted: 09 February 2014 at 7:36am
Fantastic! THX!!!


-------------
[Sig removed by Admin: Signature can't exceed 40GB]



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net