Programatically changing the Left Property in a Report

A

Andy Levy

Hi

was wondering if anyone knows how to change a TextBox Left Position value in
a report programatically.

I have tried textBoxName.Left = 7.565 but it just sets the value to 0
automatically

thanks
al
 
F

Fredg

Andy,
The property is a Twip value.
7.565 in twips is just too small a difference for the eye to see, as
1440 twips = 1 inch.

If you really mean 7.565 inches, try:

textBoxName.Left = 7.565 * 1440

in the Report Section's Format event.
 
M

Marshall Barton

Andy said:
was wondering if anyone knows how to change a TextBox Left Position value in
a report programatically.

I have tried textBoxName.Left = 7.565 but it just sets the value to 0
automatically


The issue is the units of the number you're assigning to the
Left property. Except in the UI property sheet, the units
are in twips (1440 per inch), This means that if meant
7.565 inches, you should use:

textBoxName.Left = 7.565 * 1440

Also, make sure you do that in the Format event of the
section containg the text box.
 

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