|
-
Apr 25th, 2001, 04:12 PM
#1
Thread Starter
Good Ol' Platypus
"Dynamically" make text appear on the form!
I thought about loading multiple labels but that would consume a lot of memory. I think there used to be a print function in VB but now there isnt!!!
Do any of the lost programmers out there possess this knowledge?
(Do you guys know?)
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Apr 25th, 2001, 04:14 PM
#2
Frenzied Member
You sure there isn't a Print function? I've never used it but I thought there was.
You can get the DC of the form and use GDI functions to do it.
Harry.
"From one thing, know ten thousand things."
-
Apr 25th, 2001, 08:05 PM
#3
There is a print function, but its hidden (like Line). Form/PictureBox/Printer/Debug.Print "blah blah". It uses "CurrentX" and "-Y" to tell where to put it.
Z.
-
Apr 26th, 2001, 03:51 AM
#4
Fanatic Member
Form.Print will still work...
But you can also go fancy and use the API :
Code:
Private 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
Form.AutoRedraw = True
TextOut Form.hDC, 50, 50, "This is a form", Len("This is a form")
Form.Refresh
Offcoure the Print function will do just the same, it's just that I like the API ...
the alien's are invading!! 
(sorry, but they won't let me put the img tag in my signature )
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
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
|