Changing the width of a label - read only error

  • Thread starter Thread starter Susan G
  • Start date Start date
S

Susan G

I am trying to change the width of a label
programatically depending on certain conditions. When I
try to do this (example lblMyLabel.width = 25) I get an
error that it is read only. Is there a way to get around
this?

Please help,
Susan G
 
Susan,

Your syntax is correct. Where are you running the code from?

God Bless,


Mark A. Sam
 
Susan said:
I am trying to change the width of a label
programatically depending on certain conditions. When I
try to do this (example lblMyLabel.width = 25) I get an
error that it is read only.


In general that should work. Where are you trying to do
this?

Note that setting the control size and position properties
using code must be in units of twips (1440 per inch) so your
25 above would result in an extremely narrow label.
 
Back
Top