Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / October 2004

Tip: Looking for answers? Try searching our database.

Text and color

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sara T. - 29 Sep 2004 22:14 GMT
How can I display a text in different color in one line by using
mobilecontrol?

i.e.
This is a boy

If I need to see the word "is" in red color, is there any solution.

Sara T.
NetDragonKing \(NDK\) - 02 Oct 2004 17:14 GMT
Dear Sara,

It uses the property Text of the Controls, for examples, with a label named lblExample:

private void Page_Load(object sender,System.EventArgs e)
   {
     lblExample.Text="<h1>This <font color='red'>is</font> a boy</h1>";
   }

.......................

Daniel Andrade
MCP (Microsoft Certificated Professional)
Developer Microsoft 4 stars
Guayaquil-Ecuador
www.gratisweb.com/dotnet

> How can I display a text in different color in one line by using
> mobilecontrol?
[quoted text clipped - 5 lines]
>
> Sara T.
Sara T. - 05 Oct 2004 16:28 GMT
I try to use your technique but it doen't work. The label on mobileform will generate the text as following on the screen:

<h1>This <font color='red'>is</font> a boy</h1>

And when I see in View Source on IE, it is translated to:

&lt;h1&gt;This &lt;font color='red'&gt;is&lt;/font&gt; a boy&lt;/h1&gt;

Eventhough I change the label control to textvuew control, it doesn't work too.

Sara T.

 "NetDragonKing (NDK)" <dandrade@fiec.espol.edu.ec> wrote in message news:Onb8StJqEHA.4008@TK2MSFTNGP14.phx.gbl...
 Dear Sara,

 It uses the property Text of the Controls, for examples, with a label named lblExample:

 private void Page_Load(object sender,System.EventArgs e)
     {
       lblExample.Text="<h1>This <font color='red'>is</font> a boy</h1>";
     }

 .......................

 Daniel Andrade
 MCP (Microsoft Certificated Professional)
 Developer Microsoft 4 stars
 Guayaquil-Ecuador
 www.gratisweb.com/dotnet

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.