Solved

Unable to get pixel from the hidden picture box

Posted on 2001-07-26
4
300 Views
Last Modified: 2012-05-04
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!
0
Comment
Question by:Murugan
4 Comments
 

Author Comment

by:Murugan
ID: 6321828
thanks
0
 
LVL 11

Expert Comment

by:Otana
ID: 6321830
Do you use API Calls?
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6321853
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
 
LVL 6

Accepted Solution

by:
andyclap earned 60 total points
ID: 6322222
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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now