Re: How do I customize drag image behavior?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Check out Brad's example at http://btmtz.mvps.org/listview/

--

Randy
http://vbnet.mvps.org/


"Rob Richardson" <CedricCicada@xxxxxxxxx> wrote in message
news:cf84b208-260d-49bf-809d-7f0b88bf55ca@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am trying to get a reasonable display to show that I am dragging the
selected item from a listbox onto another control. So far, I have
found the following choices:

1. I can create an icon file and use it for the listbox's DragIcon
property. I've got a couple of problems with this. First, even
though the only image in the icon file is 16x16 pixels, VB
automatically expands the image to 32x32 pixels, which looks extremely
tacky. I only need a neat little image. Second, I have no visual way
of knowing where the exact location the mouse is pointing to. It
could be anywhere within the 32x32 box, and the user and the
application are both going to need its exact location.

2. I can leave the listbox's DragIcon property empty and change its
MousePointer property when I'm dragging it. This looks very good, and
it avoids the second problem mentioned above. The problem here is
that when I drag the selection, I get an image of the outline of the
entire listbox control.

So, how can I either get a small drag icon with a known hotspot
indication, or how can I get rid of the outline of the listbox's image
when I'm dragging it without using a drag icon?

Thanks very much!

RobR


.



Relevant Pages

  • Re: multi-select listbox question
    ... > You can use the Column property to refer to a specific column, ... > control A Control object that represents the active combo box or ... > selection has been made, ... >> listbox has to be the column that holds the prices - at least i couldn't ...
    (microsoft.public.access.forms)
  • Re: Listbox acts like it is bound when it is not
    ... I have since written some code to populate and unpopulate the listbox ... that is happening to the listbox control that I do not understand. ... event of the combo box requeries the list box, ... setting the list selection) all indicate that the control must be ...
    (microsoft.public.access.formscoding)
  • Re: Multiselect Listbox woes
    ... If your listbox is RowSource'd to an array or you AddItemthe selection ... items your multiselect will work fine. ... then tabs to another control or clicks ...
    (microsoft.public.fox.programmer.exchange)
  • Re: selectedindex of multiple listbox selection in a datagrid
    ... Since you are using a TemplateColumn, and you control the ID, it is ... you loop through the listbox items to see which ones ... Private Sub Page_Load(ByVal sender As System.Object, ... I have a listbox with multiple selection mode inside datagrid. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Unexpected behaviour of Listbox MultiSelect
    ... As for the asp.net listbox multiple selection problem (when there has ... So when using ListBox control with mutiple selection, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)