Inch marks vs quotesm (1 Viewer)

bodhran1

Dazed and Confused
Local time
Today, 13:33
Joined
Mar 27, 2002
Messages
43
I want to change the location of a text box from within VB.

I try to enter a command like:

box_left = 1" <---this is the problem line
box_top = 1" <---so is this one
Forms!Sorted.ECN.Left = box_left
Forms!Sorted.ECN.Top = box_top

VB won't accept the inch mark becuase it thinks it's a quote.

I tried it without the " but it seems to need a number more like 1500 to locate it close to where it should be.

Can anyone tell me how to get the inch mark in there or what units the system is measuring in?

Thanks in advance!

Dave
 

WayneRyan

AWF VIP
Local time
Today, 18:33
Joined
Nov 19, 2002
Messages
7,122
Dave,

Although when you view properties they refer to size in inches
that's not how they handle it programmically. They use
some unit called "twips" (I think).

box_left = 1000
box_top = 1000
Forms!Sorted.ECN.Left = box_left
Forms!Sorted.ECN.Top = box_top

Experiment,
Wayne
 

Users who are viewing this thread

Top Bottom