Results 1 to 2 of 2

Thread: Draw line on Picture Box

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Try this:
    Code:
       Picture1.ScaleTop = -1   ' Set scale for top of grid.
       Picture1.ScaleLeft = -1   ' Set scale for left of grid.
       Picture1.ScaleWidth = 2   ' Set scale (-1 to 1).
       Picture1.ScaleHeight = 2
       Picture1.Line (-1, 0)-(1, 0)   ' Draw horizontal line.
       Picture1.Line (0, -1)-(0, 1)   ' Draw vertical line.
    I copied it from ScaleLeft, ScaleTop Properties Example in VB6 Help.

    ------------------
    Marty

  2. #2
    Guest

    Post

    How do you draw a line onto a picture box?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width