Click to See Complete Forum and Search --> : Color EyeDropper (Please Help!!!)


wolwil
February 15th, 2009, 06:59 PM
I really would loove it if someone would give me the code for a VC++ Express Windows Form Application to be able to hover the mouse over a picturebox and have a label display the RGB(255,255,255) value of the pixel the mouse is over.

I have tried a ton of different things and I am at wits end.

Thanks

ckweius
February 15th, 2009, 09:19 PM
Check out this article.

http://www.codeguru.com/cpp/cpp/cpp_mfc/general/article.php/c9567/

Kevin Choong

wolwil
February 15th, 2009, 09:46 PM
I am really new to c++ and I really need it dumbed down. Haha like this dumed down:

private: System::Void pictureBox1_Click(System::Object^ sender, System::EventArgs^ e) {

//insert code here

}

Arjay
February 16th, 2009, 01:16 AM
You're not using C++. The code you supplied is managed C++.

If you want C++ code (i.e. non-managed), you need to create a different type of project.

Marc G
February 16th, 2009, 10:12 AM
[ moved thread ]