Unable to get pixel from the hidden picture box

Hi,
  I need to get pixel from the picture box that visible property is set to false. I can get the pixels from that when the visible property is set to true. Any help be appreciated. Thanks!
MuruganAsked:
Who is Participating?
 
andyclapCommented:
Set autoredraw=true

This creates an off screen bitmap for the image, so you can then query the pixels without needing the picturebox on screen.
When it's visible, don't forget to do a refresh after any updates which need to update immediately - otherwise the picture will only be updated when the application is "waiting"
0
 
MuruganAuthor Commented:
thanks
0
 
OtanaCommented:
Do you use API Calls?
0
 
TimCotteeHead of Software ServicesCommented:
That is the way it is unfortunately. When the picture box is not visible you cannot obtain the value for Picture.Point(x,y)

Instead of making the picturebox invisible, why don't you simply move it off-screen

Picture.Move Me.Width + 100,Me.Height + 100
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.