string sRet = "
" + sUser + " ![]() | " + ostr[0].ToString() + " | " + ostr[1].ToString() + " |
return sRet ;
when i apply to this textbox the styles are not applyed to text.
how can i apply the styles for textbox data in runtime .
please help me
" + sUser + " ![]() | " + ostr[0].ToString() + " | " + ostr[1].ToString() + " |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jun 27, 2013, 3:26 AM EDT
You can apply style to textbox at runtime like below
Let me know if you need more information
Regards,
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.
prathyusha173 reputationPosted Jun 27, 2013, 3:31 AM EDT
public override string ToString()
{
switch(this.type)
{
case MsgType.Msg:
return this.user+" says: "+this.msg;
case MsgType.Join :
return this.user + " has joined the room";
case MsgType.Left : return this.user + " has left the room";
}
return "";
}
in this method,for this.user i have to apply the color or styles.
please help me
it,s important
prathyusha173 reputationPosted Jul 1, 2013, 9:55 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 1, 2013, 10:26 PM EDT
Regards,
Iftikar
prathyusha173 reputationPosted Jul 2, 2013, 2:42 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 2, 2013, 2:48 AM EDT
Give example
Regards,
Iftikar