Results 1 to 2 of 2

Thread: DrawString

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Posts
    83

    DrawString

    I have this code to draw a string


    Public Sub DrawStringPointF(e As PaintEventArgs)
    ' Create string to draw.
    Dim drawString As [String] = "Sample Text"
    ' Create font and brush.
    Dim drawFont As New Font("Arial", 16)
    Dim drawBrush As New SolidBrush(Color.Black)
    ' Create point for upper-left corner of drawing.
    Dim drawPoint As New PointF(150F, 150F)
    ' Draw string to screen.
    e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint)
    End Sub


    How do I then call this sub? If I use DrawStringPointF() I'm not sure what to put in the brackets
    Last edited by nishds2; Sep 8th, 2002 at 09:35 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width