积极答复者
vb2008中print到底怎么用

问题
答案
-
你好!
可以类似于这样:
Public Sub DrawStringPointF(ByVal 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(150.0F, 150.0F) ' Draw string to screen. e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint) End Sub
周雪峰- 已标记为答案 Allen Chen - MSFTModerator 2009年12月8日 10:17
全部回复
-
你好!
可以类似于这样:
Public Sub DrawStringPointF(ByVal 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(150.0F, 150.0F) ' Draw string to screen. e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint) End Sub
周雪峰- 已标记为答案 Allen Chen - MSFTModerator 2009年12月8日 10:17