By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,982 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

rectangle drawn on picturebox gets erased when i scroll image.

P: 9
rectangle drawn on picturebox gets erased when i scroll image.i.e
i have made application for image cropping. on mouse down and mouse up event, an rectangle is drawn on picturebox using graphics.
1) now the problem is that when scroll image rectangle drawn on picturebox gets erased.

2)now i want resize this rectangle as per user's interest
how to resize the rectangle and drag the rectangle on picture box.


Awaiting for the answers.

thank you!!!
Apr 1 '10 #1
Share this Question
Share on Google+
5 Replies


P: 9
rectangle drawn on picturebox gets erased when i scroll image.i.e
i have made application for image cropping. on mouse down and mouse up event, an rectangle is drawn on picturebox using graphics.
1) now the problem is that when scroll image rectangle drawn on picturebox gets erased.

2)now i want resize this rectangle as per user's interest
how to resize the rectangle and drag the rectangle on picture box.

Awaiting for the answers.

thank you!!!
Apr 1 '10 #2

RedSon
Expert 5K+
P: 5,000
Just hit that submit button once please. Your threads have been merged.
Apr 1 '10 #3

tlhintoq
Expert 2.5K+
P: 3,525
1) Redraw the box in the new {scrolled} location
2) Your box, right now, is most likely nothing more complex than a drawing of 4 lines, right? You'll have to make it a control that is a bit smarter. Give it handles that can be grabbed etc. It will need to become a full-fledged object that you keep track of. Or better still that keeps track of itself; knowing its own size, location etc.
Apr 1 '10 #4

P: 9
@RedSon
. did not understood?
Apr 2 '10 #5

P: 9
@tlhintoq
. did not understood
Apr 2 '10 #6

Post your reply

Sign in to post your reply or Sign up for a free account.