Private Sub PictureBox1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
e.Graphics.DrawEllipse(Pens.AliceBlue, New Rectangle(New Point(0, 0), New Size(PictureBox1.Width, PictureBox1.Height)))
End Sub
Run Code Online (Sandbox Code Playgroud)
我试图在VB.Net,.Net版本4中绘制一个圆圈.在paintbox中没有显示任何内容.
我的代码给了我错误"无法在int和T之间隐式转换"
public class Vector3D<T>
{
public T x;
public T y;
public T z;
Vector3D()
{
x = 0;
y = 0;
z = 0;
}
}
Run Code Online (Sandbox Code Playgroud)