Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Draw Lines from coordinates

Status
Not open for further replies.

marcin2k

Programmer
Jan 26, 2005
62
CA
I have a string with a bunch of x and y coordinates. I was wondering is there anything in Access like there is a picture box in Visual Basic for CE so that I can just write
Object.Line coordinates or Object.DrawLine coordinates
I noticed I can do this on a report, but I need to do it on a form.

Thanks any help is would be great,
Marcin
 
Marcin,

As far as I know, the closest you can get is to create the lines, set their Left, Top, Width & Height properties to zero and then adjust those properties with the Move method.

The below has a box grow out of the top left corner of the form.

Code:
For intL = 1 To Me.Form.Section(acdeatail).Height / 2
bx01.Move intL, intL, intL, intL
Me.Repaint
Next intL

If you just want a line or box to appear at a specific point, remove the Me.Repaint. (I like the drama)

HTH


John

Use what you have,
Learn what you can,
Create what you need.
 
you can use some of the graphics controls (Unbound Object Fram, Image, etc) and draw "On Screen". You can also draw directly on a Report, but you need to do this within the report and section with information (data) available to the report at run time.

An alternative (although somewhat limited and QUITE arcane) is use the Chart applet, again with "data".



MichaelRed


 
Thanks for the help, I actually found a Picture Box for VBA that someone has coded. It has the same commands that a regular picture box has.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top