L
learn
Guest
Hi,
On the form, there is a PictureBox. If I assign an image for the picturebox, following code not works. If not assign the image, works fine. If delete class tryClass block, no error (even assign the image to the pictureBox).
Any idea?
Public Class tryClass
Private mProperty As Integer
Property tryProperty() As Integer
Get
Return (mProperty)
End Get
Set(ByVal Value As Integer)
mProperty = Value
End Set
End Property
End Class
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class
On the form, there is a PictureBox. If I assign an image for the picturebox, following code not works. If not assign the image, works fine. If delete class tryClass block, no error (even assign the image to the pictureBox).
Any idea?
Public Class tryClass
Private mProperty As Integer
Property tryProperty() As Integer
Get
Return (mProperty)
End Get
Set(ByVal Value As Integer)
mProperty = Value
End Set
End Property
End Class
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
End Sub
End Class