求助
vb.net吧
全部回复
仅看楼主
level 1
l1013487018 楼主
Public Class Form1
Dim g As Graphics = Me.PictureBox1.CreateGraphics
Dim myBrush As New TextureBrush(New Bitmap("C:\我的程序\下箭头.bmp"))
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
g.FillEllipse(myBrush, New RectangleF(0, 0, 150, 150))
End Sub
End Class
运行后显示
“System.NullReferenceException”类型的异常在 WindowsApplication1.exe 中发生,但未在用户代码中进行处理
其他信息: 未将对象引用设置到对象的实例。
求大神解决
2016年05月03日 14点05分 1
level 1
l1013487018 楼主
大神快来
2016年05月03日 14点05分 2
直接给 PictureBox.Image 属性赋值不行吗? ---贴吧极速版 For UWP
2016年05月03日 15点05分
1