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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jul 2, 2013, 6:48 AM
Give example
Regards,
Iftikar
prathyushaPosted Jul 2, 2013, 6:42 AM
Iftikar HussainPosted Jul 2, 2013, 2:26 AM
Regards,
Iftikar
prathyushaPosted Jul 2, 2013, 1:55 AM
prathyushaPosted Jun 27, 2013, 7:31 AM
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
Iftikar HussainPosted Jun 27, 2013, 7:26 AM
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.