Drag and drop

  • Thread starter Thread starter =?iso-8859-1?B?UmVu6Q==?=
  • Start date Start date
?

=?iso-8859-1?B?UmVu6Q==?=

Hello

Repost from Forms and Activexcontrol NGs.

How do I go about programming drag&drop between a ListView
control and a regular Access TextBox (or ComboBox) control?

I've done drag & drop operations between two ListView
controls - ie. I'm familiar with the associated events.
But the Access TextBox control doesn't have OLEDragDrop
events.

So what am I missing!

Thanx

René
Montreal
 
The normal complement of built-in Access controls do not support
drag-and-drop. The usual approach is to use a two-list-box technique similar
to that used in the Report Wizard. There is an example, in generic form, in
every edition of the Access Developer's Handbook. And, it is not really
difficult to create your own for your specific case.

It'll be even simpler if I understand that you want to move/copy the value
into a Text or Combo Box, because you'll just need your List Box, a
CommandButton, and the target Control. Put code in the Click event of the
Command Button to set the target control from the selected value of the List
Box.

Larry Linson
Microsoft Access MVP

Hello

Repost from Forms and Activexcontrol NGs.

How do I go about programming drag&drop between a ListView
control and a regular Access TextBox (or ComboBox) control?

I've done drag & drop operations between two ListView
controls - ie. I'm familiar with the associated events.
But the Access TextBox control doesn't have OLEDragDrop
events.

So what am I missing!

Thanx

René
Montreal
 
Back
Top