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.