| Author: vipul 04 Sep 2008 | Member Level: Diamond | Rating:   Points: 3 |
hi, for that you used this way lbl1.Text = "<font color='" + lbl2.ForeColor.Name.ToString() + "'>" + lbl2.Text.ToString() + "</font> <font color='" + lbl3.ForeColor.Name.ToString() + "'>" + lbl3.Text.ToString() +"</font>";
vipul, http://dongavipul.blogspot.com
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|
| Author: D.Jeya kumar(JK) 04 Sep 2008 | Member Level: Diamond | Rating:  Points: 2 |
Hi,
Try to use the richtextbox and there you can format the text and change the color size easily.
what ever you want to form you can do it.some samples are added in the site. change the look and feel of the richtextbox like the label and then apply the formating
http://www.functionx.com/vcsharp2003/controls/richtext.htm
http://www.startvbdotnet.com/controls/rtb.aspx
Regards JK
|