Here is a link to a simple demo of Drawing a Selection (Rubberband) box on a
Picturebox. This program also crops images.
But, the code within should give you the general idea on how to draw the
selection area on a form too, as a form also has a MouseDown, MouseMove, and
MouseUp events. Then you can figure out how to
get the area that is captured and highlight the objects you are wanting to
capture.
Scroll down the page to: Rubberband Selection Box for Cropping Images" Code
and all is in the zip file you download.
james
aka: Trucker
(watch for word wrap)
http://www.gotdotnet.com/community/u...nguageDropDown
List=VB.NET&SortDirection=Desc&SortColumnName=CreationDate&Page=8&Size=25
"Dino M. Buljubasic" <(E-Mail Removed)> wrote in message
news:Gdqwb.146067$jy.81173@clgrps13...
> I have a form that contains 24 user controls representing hours (something
> like MS Outlook daily calendar). I would like to be able to
> mouse-down-drag-mouse-up select a region of the form so that selected
hours
> (say from 8:00am till 1:00pm) appear highlighted or shaded (like in MS
> Outlook expres).
>
> Any help will be appreciated
>
> --
>
>
> -------------------------------------------------------------------------
> FIGHT BACK AGAINST SPAM!
> Download Spam Inspector, the Award Winning Anti-Spam Filter
> http://mail.giantcompany.com
>
>
>
>