I'm trying to assign picturebox.image value from one picturebox control to another one which is created on a different form.
It i obviously related with inheritance
I've tried with something like:
But this doesn't work.
I'm getting an error:
Value of type 'System.Drawing.Image' cannot be converted to 'System.Windows.Forms.PictureBox'.
How I have to convert the picturebox value that it can be sent to the 2nd form?
Or, there's a better solution?
It i obviously related with inheritance
I've tried with something like:
Code:
Public ReadOnly Property za_pic() As PictureBox
Get
Return PictureBox1111.Image
End Get
End PropertyI'm getting an error:
Value of type 'System.Drawing.Image' cannot be converted to 'System.Windows.Forms.PictureBox'.
How I have to convert the picturebox value that it can be sent to the 2nd form?
Or, there's a better solution?