|
-
Sep 10th, 2000, 12:00 AM
#1
Thread Starter
Addicted Member
I need to put a timestamp on images that my program creates so how can i put text onto the image in a picture box?
-
Sep 10th, 2000, 01:31 AM
#2
How about using the ToolTipText property?
Code:
Picture1.ToolTipText = "Your text"
-
Sep 10th, 2000, 10:38 AM
#3
Thread Starter
Addicted Member
no texttooltip willnot work i want to actually put text
onto the image so when i open it it is on it. Or Draw Text
onto it.
-
Sep 10th, 2000, 10:45 AM
#4
PowerPoster
I remember another thread not so long ago (within the last month or so) which dealt with this problem.
Try and hunt it down. If you can find it or it doesn't answer the question, post again to bring this to the top of the list.
Gentile or Jew,
O you who turn the wheel and look to windward,
Consider Phlebas, who was once handsome and tall as you...
-
Sep 10th, 2000, 10:48 AM
#5
Use the Print method.
Code:
Picture1.AutoRedraw = True
Picture1.Print "Hello"
'Save it into the Picture
Picture1.Picture = Picture1.Image
-
Sep 10th, 2000, 02:07 PM
#6
Addicted Member
You can try with TextOut API function:
Code:
Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal HDC As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long
Sub PrintText(strText As String)
TextOut Picture1.hDC, 3, 1, strText, Len(strText)
End Sub
Hope this helps.
Zvonko Bostjancic
Ilirska Bistrica, Slovenia
[email protected]
Using VS6 Professional with SP3
Programming mostly in VB and I've started to learn VC++ & MFC
-
Sep 10th, 2000, 03:48 PM
#7
Thread Starter
Addicted Member
i just used the picture1.print "Text"
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
|