I am a beginner with VB and need som help.
I want to check if a picturebox contains a certain image and if it is true give a variable a value.
I have tried the folowing lines of code but no value is returned:
If picturebox1 is ("C:\Users\Documents\Visual Studio 2008\Projects\Image1.jpg") Then Image1value = 1
and
If picturebox1.picture is ("C:\Users\Documents\Visual Studio 2008\Projects\Image1.jpg") Then Image1value = 1
and also
If picturebox1 is Image.FromFile ("C:\Users\Documents\Visual Studio 2008\Projects\Image1.jpg") Then Image1value = 1
and variants.
No errors are generated, but I do not get an integer value for Image1value when Image1.jpg is in the picturebox.
I hope someone can help me with this,
Thanks in advance,
Groover
I want to check if a picturebox contains a certain image and if it is true give a variable a value.
I have tried the folowing lines of code but no value is returned:
If picturebox1 is ("C:\Users\Documents\Visual Studio 2008\Projects\Image1.jpg") Then Image1value = 1
and
If picturebox1.picture is ("C:\Users\Documents\Visual Studio 2008\Projects\Image1.jpg") Then Image1value = 1
and also
If picturebox1 is Image.FromFile ("C:\Users\Documents\Visual Studio 2008\Projects\Image1.jpg") Then Image1value = 1
and variants.
No errors are generated, but I do not get an integer value for Image1value when Image1.jpg is in the picturebox.
I hope someone can help me with this,
Thanks in advance,
Groover