Click here to Skip to main content
15,124,861 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello
I create my own project in window application using C#
i take two picturebox in my project
i allready attach image in picturebox1
now i want to if i select perticuler pixel in picturebox1's image at runtime then automatic draw picturebox2'image of selected pixel in picturebox1

i am new in programing so please help me

thanks in advance
Posted

1 solution

khalid khatri wrote:
i am new in programing so please help me


I suggest buying a C# book, working through it, and knowing what you're doing in general before attempting this. A picture box is a simple control, provided for people who aren't capable of drawing their own images. If you want to interact with the picture, such as select pixels, it is close to useless, you have to work out how it's scaling the image, etc, to work out where the mouse is ( unless you take a screenshot of the whole desktop, also wasteful ). The Paint event is where you draw your picture, and then you can work out what pixel the mouse is over and get it's color. Depending on what you mean by 'beginner', I'd guess your learning would be better served by learning some basics before attempting this.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900