Results 1 to 7 of 7

Thread: Drawing text

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151

    Drawing text

    How do you draw text in a picturebox.

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Look up the TextOut API call.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151
    I don't have API viewer. What does API call look like?

  4. #4
    Addicted Member Osiris's Avatar
    Join Date
    Oct 2000
    Location
    Dimension Hole
    Posts
    142
    the api viewer comes with your visual basic, try clicking the
    windows button --> programs-->Visual Basic-->Api Viewer
    ؊Ϯϊ

  5. #5
    Junior Member Caleb's Avatar
    Join Date
    Jan 2001
    Posts
    24
    You can use vbAPI.com 's refrence too. It explains alot....

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151
    API Viewer only comes with Professional and Enterprize versions of VB. I am poor so I only have learning edition.

  7. #7
    Hyperactive Member
    Join Date
    Feb 2001
    Posts
    421
    VB Code:
    1. Private Sub Command1_Click()
    2.     Picture1.Print "ABC"
    3. End Sub

    Do NOT try to put this code into the Form_Load event, you would have to put it in the Form_Paint event. Also, set Picture1's AutoRedraw property to True at design time.
    [vbcode]
    ' comment
    Rem remark
    [/vbcode]

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