| Author: ANIL PANDEY 05 Aug 2008 | Member Level: Diamond | Rating: Points: 4 |
Hi, There is nothing like Multiline LABEL in .net insted u can insert the multiple line text in the label. for inserting Data in the Text Box Use the <BR /> this Will provide u a line break.
like
lblAddress.Text = " Kopar khairne Vashi Navi Mumbai <BR /> Maharashtra";
Regards Anil pandey
Thanks & Regards Anil Kumar Pandey
|
| Author: pankaj agarwal 05 Aug 2008 | Member Level: Gold | Rating: Points: 4 |
Hee Anil But i don't have static word like "Kopar khairne Vashi Navi Mumbai <BR /> Maharashtra". it is coming from properties so i don't know how much this address will be long. like lblAddess.text= textboxAddress.text;
But i want to user only label not textbox.
|
| Author: ANIL PANDEY 05 Aug 2008 | Member Level: Diamond | Rating: Points: 3 |
So simply Set the Width of the label in "%" it will automatically adjust its width according to the text Size and will become Multiline...
Hope this will work for u
Regards Anil
Thanks & Regards Anil Kumar Pandey
|
| Author: pankaj agarwal 05 Aug 2008 | Member Level: Gold | Rating: Points: 2 |
dear friend....this label is worknig on IE6 and IE7 but mozilla it's shape are changing....it's look like two label.
|