|
-
Nov 9th, 2002, 05:44 AM
#1
Thread Starter
Hyperactive Member
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
-
Nov 9th, 2002, 12:47 PM
#2
Use a transparent Label control. Map it's Caption to your usercontrol Caption property.
-
Nov 10th, 2002, 04:35 AM
#3
Thread Starter
Hyperactive Member
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
-
Nov 10th, 2002, 08:36 AM
#4
PowerPoster
Have you tried using Picture1.Print method?
VB Code:
Picture1.AutoRedraw = True
Picture1.Print "hello"
-
Nov 13th, 2002, 11:58 AM
#5
Thread Starter
Hyperactive Member
Thanx brucevbd & Amitabh for ur help. I got my stuff right. :-)
-
Nov 14th, 2002, 03:58 AM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|