How can I Autosize Label in smart device app as there is no such property
in its label ?

I am using VB.Net 2003 for this purpose.

Best Regards,

Luqman

Re: Auto Size Label in VS.Net 2003 ? by Maarten

Maarten
Fri Dec 12 17:31:27 CST 2003

Autosize is not supported for this version of the .NET CF

--
Regards,

Maarten Struys, eMVP
PTS Software bv

"Luqman" <pearlsoft@cyber.net.pk> wrote in message
news:Ob7EspLwDHA.2472@TK2MSFTNGP09.phx.gbl...
> How can I Autosize Label in smart device app as there is no such property
> in its label ?
>
> I am using VB.Net 2003 for this purpose.
>
> Best Regards,
>
> Luqman
>
>
>
>



Re: Auto Size Label in VS.Net 2003 ? by Luqman

Luqman
Sat Dec 13 00:14:59 CST 2003

OK, can I Autosize the label through code or by making some calculation ?

Best Regards,

Luqman


"Maarten Struys, eMVP" <maarten.struys@nospam.pts.nl> wrote in message
news:uqDyAgQwDHA.1344@TK2MSFTNGP09.phx.gbl...
> Autosize is not supported for this version of the .NET CF
>
> --
> Regards,
>
> Maarten Struys, eMVP
> PTS Software bv
>
> "Luqman" <pearlsoft@cyber.net.pk> wrote in message
> news:Ob7EspLwDHA.2472@TK2MSFTNGP09.phx.gbl...
> > How can I Autosize Label in smart device app as there is no such
property
> > in its label ?
> >
> > I am using VB.Net 2003 for this purpose.
> >
> > Best Regards,
> >
> > Luqman
> >
> >
> >
> >
>
>



Re: Auto Size Label in VS.Net 2003 ? by Maarten

Maarten
Sat Dec 13 02:36:46 CST 2003

During runtime you can do that using the Size property of the label. What
you could do is derive your own AutoSizeLabel from Label. To measure the
string in the label you can use the Graphics.MeasureString method inside the
OnPaint handler and set the Size property accordingly.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

"Luqman" <pearlsoft@cyber.net.pk> wrote in message
news:uo4LCCUwDHA.2440@TK2MSFTNGP12.phx.gbl...
> OK, can I Autosize the label through code or by making some calculation ?
>
> Best Regards,
>
> Luqman
>
>
> "Maarten Struys, eMVP" <maarten.struys@nospam.pts.nl> wrote in message
> news:uqDyAgQwDHA.1344@TK2MSFTNGP09.phx.gbl...
> > Autosize is not supported for this version of the .NET CF
> >
> > --
> > Regards,
> >
> > Maarten Struys, eMVP
> > PTS Software bv
> >
> > "Luqman" <pearlsoft@cyber.net.pk> wrote in message
> > news:Ob7EspLwDHA.2472@TK2MSFTNGP09.phx.gbl...
> > > How can I Autosize Label in smart device app as there is no such
> property
> > > in its label ?
> > >
> > > I am using VB.Net 2003 for this purpose.
> > >
> > > Best Regards,
> > >
> > > Luqman
> > >
> > >
> > >
> > >
> >
> >
>
>