Query related to Label wrapping

Sep 4 2008 12:36 AM
Hi All,
I have an requirement, where I will have a string data obtained from DB. The length of string data may vary randomly. 
Now, I am working on Win form which will display this string data based on following conditions:
  1. Data will be wrapped if it exceeds the width of Label.
  2. Wrapping of data will be for only 2 lines.

I know, how to wrap the label, but I want to know how I would limit the wrapping uptill 2 lines. If it exeeds 2 lines also then it should get trimmed.
Plzz, help me.  

TIA :)
Supriya


Answers (2)