Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

[RESOLVED] pictureboxes on two different forms

$
0
0
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:

Code:

    Public ReadOnly Property za_pic() As PictureBox
        Get
            Return PictureBox1111.Image
        End Get
    End Property

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?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>