try this:

vb Code:
  1. Module Module1
  2.     Public Sub DrawPlayerCoordinates(ByVal frm As Form)
  3.         Dim g As Graphics = frm.CreateGraphics
  4.         g.DrawString("Map: " & GetPlayerMap(MyIndex) & vbCrLf & "X: " & GetPlayerX(MyIndex) & vbCrLf & "Y: " & GetPlayerY(MyIndex), frm.Font, Brushes.Red, 15, 15)
  5.     End Sub
  6. End Module

to call it from your button_click event:

vb Code:
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4.         DrawPlayerCoordinates(Me)
  5.     End Sub
  6.  
  7. End Class