Results 1 to 6 of 6

Thread: How to print to pictureBox in a usercontrol???

  1. #1

    Thread Starter
    Hyperactive Member toughcoder's Avatar
    Join Date
    Nov 2002
    Location
    Near, Very Near
    Posts
    340

    Question How to print to pictureBox in a usercontrol???

    Hello fellow programmers. I have got a problem, maybe u can help. I'm making a usercontrol with a pictureBox in ti. Now, i have a property called Caption. Now when I get the caption value, it must be printed to the pictureBox like picture1.print New_value. Also, the default caption which is stored in the variable dim const def_value as "Hello World" must be printed in the pictureBox when the control is initialized. Plz help

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    Use a transparent Label control. Map it's Caption to your usercontrol Caption property.

  3. #3

    Thread Starter
    Hyperactive Member toughcoder's Avatar
    Join Date
    Nov 2002
    Location
    Near, Very Near
    Posts
    340
    Hello brucevde,
    I think u havent understood my problem. I have a caption proerpty to get some caption from the user. After i get the caption, it must be printed to the pictureBox using the print command. Thanx anyway

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Have you tried using Picture1.Print method?
    VB Code:
    1. Picture1.AutoRedraw = True
    2. Picture1.Print "hello"

  5. #5

    Thread Starter
    Hyperactive Member toughcoder's Avatar
    Join Date
    Nov 2002
    Location
    Near, Very Near
    Posts
    340
    Thanx brucevbd & Amitabh for ur help. I got my stuff right. :-)

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Anyday.

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