Setting Width in code

  • Thread starter Thread starter Tina
  • Start date Start date
T

Tina

I can't set a textbox or label .width = 441 because of a type error. How
can I set a width in code?

My larger task is to make some headings in textboxes always the same width
as the datagrid below them. but I also find that the datagrid width is
always zero. Is there a way to find the width of the datagrid and then set
other stuff the same width?

Thanks,
T
 
label.width = Unit.Pixel(441) (Adjust for the language of your choice.)

If you want the datagrid to be at a certain width, set it yourself.
 
Back
Top