Results 1 to 2 of 2

Thread: drawing in a picture box

  1. #1
    Megatron
    Guest
    Try this. You'll need to modify the coordinates to change the direction of the arc.
    VB Code:
    1. Private Declare Function Arc Lib "gdi32" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long, ByVal X4 As Long, ByVal Y4 As Long) As Long
    2.  
    3. Private Sub Command1_Click()
    4.    
    5.     'Draw the arc
    6.     Arc hdc, 30, 30, 150, 150, 30, 30, 150, 150
    7.    
    8. End Sub

  2. #2
    Hyperactive Member
    Join Date
    Sep 2000
    Posts
    257
    Cool!

    thnx for the help
    When I write my code, only God and I know what it means. But a week later, only God knows.

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