home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Print Method"
- ClientHeight = 4095
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6855
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- ScaleHeight = 4095
- ScaleWidth = 6855
- StartUpPosition = 3 'Windows Default
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Form_Load()
- Form1.Show
- Form1.CurrentX = (Form1.Width - TextWidth("Centered Text")) / 2
- Form1.CurrentY = (Form1.Height - TextHeight("Centered Text")) / 2
- Form1.Print "Centered Text"
- Form1.CurrentX = (Form1.Width - TextWidth("Centered Text")) / 2
- Form1.CurrentY = (Form1.Height - TextHeight("Centered Text")) / 2
- Form1.Line -Step(TextWidth("Centered Text"), TextHeight("Centered Text")), , B
- Form1.CurrentX = 0
- Form1.CurrentY = 0
- Form1.Print "Top Left"
- Form1.CurrentX = Form1.Width - TextWidth("Bottom Right") - 300
- Form1.CurrentY = Form1.Height - TextHeight("Bottom Right") - 500
- Form1.Print "Bottom Right"
- End Sub
-