-
lable autosiz????
here is my problem, i have to creat a label in the runtime on a pocket pc program , and this label will carry data from a databse, i want this label autosize i try to search for this proberty on the propertes window for the pocket pc but i didnt found it, i was thinking it will be like vb6
by the way i try
label1.text = "hello! /r/n i love vbforums.com"
this make the line on 2 lines, but only the first line appear, sure i need to resize the label but how?
:wave:
-
Re: lable autosiz????
If you're using the framework 2.0, i.e. visual studio 2005, ther's the autosize property:
label1.Text = " dfsdfsdfds sdfsdfdsf dsfds fsd \r\nfdsf dsf dsf dsf dsfds fds fds fsd fds fdsf sdf";
label1.AutoSize = true;
This auto size property will set the size around the test. \r\n is to create a new line.
I tried doing something like this with visual studio 2003, but it didn't work as I wanted. I know that there is a way to do it with vs2003, but since vs2005 came out I never bothered to find out.
Hope that this helps.
Jennifer
-
Re: lable autosiz????
Jennifer, thx for your help, but really i know that /r/n will break the line i try it
but this didnt work on the pocket pc it just break the line and the 1st line appear and the second didnt