16,553
社区成员
发帖
与我相关
我的任务
分享
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim g As Graphics
g = Me.PictureBox1.CreateGraphics
g.DrawString("VB6.0中在窗体或图片框输出文字用 " & Chr(13) & Chr(10) & "show和 print方法,net中咋弄?", Me.Font, Brushes.Red, 2, 5)
g.Dispose()
End Sub
End Class
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim _Graphics As Graphics = Graphics.FromHwnd(PictureBox1.Handle)
_Graphics.DrawString("123", Me.Font, Brushes.Green, 0, 0)
End Sub
End Class