Click to See Complete Forum and Search --> : Multi-line label
avrail
Apr 8th, 2007, 04:50 PM
can i make a label with the same lengt of the pocketpc screen or less than it this i not too important,
but the most importnt thing is to make ths label with a Multi-line unabled
thanks alot
petevick
Apr 9th, 2007, 02:21 AM
Hi,
2 suggestions
1) Label1.Text = "Hello" + vbCrLf + "How are you?"
2) If you set the label's MaximumSize property to the size of the label, the text will line-wrap within the label. The AutoSize property must also be set to True.
Pete
avrail
Apr 9th, 2007, 05:49 AM
iam using the c#.net not vb
and this things are not exist in the language
petevick
Apr 9th, 2007, 06:53 AM
Hi,
things like 'what' don't exist?
1) label1.Text = "Hello \r\n How are you?";
2) doesn't matter whether it is Vb.Net or C#!!!
Pete
avrail
Apr 9th, 2007, 07:13 AM
ok, this break the line to 2 liens but only the first line appears on the program and the second not, also the label still fixed size
how can i solve this
thax alot
petevick
Apr 9th, 2007, 07:18 AM
For answer1, make the label autosize. You can use as many carriage return line feeds as you like to make it multi-line.
Have you looked at answer 2 at all?
avrail
Apr 9th, 2007, 07:22 AM
ya, i did look, but i didnt found any autosize property in the properties of the
label
petevick
Apr 9th, 2007, 07:44 AM
My apologies - I had my .Net head on, not .Net CF.
The best you can do is perservere with crlf. I can't remember if the opennetcf label control does multiline
Pete
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.