Hai

I am drawing 3*3 rectangle by using Rectangle(),bt now if i click on that rectangle i wanna display the image in that rectangle,which is selected from the list control. I know that i wanna handle OnLButtonDown() message, bt my problem is i couldnt differentiate the rectangle which i drawn and the windows rect on mouse click. Help me out plz..........

Using the location of the rectangle, and the info in the MouseEventArgs ^e you can do that. At least that's the way it sounds, you haven't posted any code to clear up what you're talking about.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.