用PictureBox1怎么画圆
?? --------------------编程问答-------------------- PictureBox3.CreateGraphics.DrawEllipse(Pens.Blue, New Rectangle(10, 10, 100, 100)) --------------------编程问答-------------------- 看不到啊对不起,新手
--------------------编程问答-------------------- 晕了 --------------------编程问答-------------------- Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
SetPicture()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub SetPicture()
Dim g As Graphics
Try
g = Me.PictureBox1.CreateGraphics
g.DrawEllipse(New System.Drawing.Pen(Color.Black), 0, 0, 45, 45)
Catch ex As Exception
Throw
End Try
End Sub
End Class --------------------编程问答-------------------- e.Graphics.DrawEllipse(Pens.Blue, New Rectangle(10, 10, 100, 100))
这句放在PictureBox3_Paint事件下 --------------------编程问答--------------------
补充:.NET技术 , VB.NET