-
Apr 8th, 2007, 04:50 PM
#1
Thread Starter
Frenzied Member
Multi-line label
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
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011
-
Apr 9th, 2007, 02:21 AM
#2
Frenzied Member
Re: Multi-line label
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
-
Apr 9th, 2007, 05:49 AM
#3
Thread Starter
Frenzied Member
Re: Multi-line label
iam using the c#.net not vb
and this things are not exist in the language
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011
-
Apr 9th, 2007, 06:53 AM
#4
Frenzied Member
Re: Multi-line label
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
-
Apr 9th, 2007, 07:13 AM
#5
Thread Starter
Frenzied Member
Re: Multi-line label
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
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011
-
Apr 9th, 2007, 07:18 AM
#6
Frenzied Member
Re: Multi-line label
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?
-
Apr 9th, 2007, 07:22 AM
#7
Thread Starter
Frenzied Member
Re: Multi-line label
ya, i did look, but i didnt found any autosize property in the properties of the
label
You Don't Have to Rate Me.
I'm Not a Civilized Man I'm the Civilization it self
White or Black, Living or Dieing and 0 or 1 that's MY life
iam an Object in Object Oriented Life
my blog : http://refateid.blogspot.com/
twitter : @avrail
010011000111010101110110001000000100110101111001001000000101000001100011
-
Apr 9th, 2007, 07:44 AM
#8
Frenzied Member
Re: Multi-line label
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|