Jeff Johnson [MVP: VB]
11/15/2011 9:54:00 PM
"BeeJ" <nospam@spamnot.com> wrote in message
news:j9ufc0$n7e$1@speranza.aioe.org...
> How do they do that so I can do it too?
>
> Creating a UserControl with drawn grid like appearance.
> Cells containing text.
>
> If I left-click drag from any cell to another cell within the UC I want to
> do multi-select.
>
> If I drag from the cell off the UC I want drag.
>
> I.E. like Windows Explorer.
Simple answer: "they" examine the mouse messages and act accordingly.
More complexity: Note that if you click on a FILE in Windows Explorer you
will immediately begin dragging, so it's also important WHERE the click
begins. In Access, for example, when you have a table open, you have to
click in a specific place (basically near a border where the cursor changes
to a big plus, like Excel) in order to select entire cells instead of text.