Setting Width in code

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
 
C

Christopher Reed

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top