I am trying to centering text on a picture inside of a picture box but I am not able to do so. Here is my code:

VB Code:
  1. Private Sub Command1_Click()
  2. Dim strMSG  As String
  3. Dim sngX As Single
  4. Dim sngY As Single
  5.  
  6.     With Picture1
  7.         .AutoRedraw = True
  8.         .AutoSize = True
  9.         .Picture = Clipboard.GetData(vbCFBitmap)
  10.         .ForeColor = vbWhite
  11.         .Move (ScaleWidth / 2) - (.Width / 2), (ScaleHeight / 2) - (.Height / 2)
  12.     End With
  13.    
  14.         strMSG = "Sample Text"
  15.         sngX = Int((Picture1.Width / 2) - (Len(strMSG)/2))
  16.         sngY = Int(Picture1.Height * 0.9)
  17.        
  18.         Picture1.CurrentX = sngX ' Position where you want to print text
  19.         Picture1.CurrentY = sngY ' Position where you want to print text
  20.         Picture1.Print strMSG
  21. End Sub


Also how would I print the text on the bottom of the picture.